Skip to content

Use Arduino_Threads concept for Serial examples #39

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Oct 19, 2021

Conversation

aentinger
Copy link
Contributor

In order to uncover problems with the current solution.

@aentinger aentinger added the type: enhancement Proposed improvement label Oct 19, 2021
@aentinger aentinger self-assigned this Oct 19, 2021
@github-actions
Copy link

Memory usage change @ b6ce537

Board flash % RAM for global variables %
arduino:mbed_nano:nano33ble 🔺 +792 - +3104 +0.08 - +0.32 ❔ -128 - +312 -0.05 - +0.12
arduino:mbed_nano:nanorp2040connect 🔺 +4 - +4 0.0 - 0.0 ❔ -128 - +308 -0.05 - +0.11
arduino:mbed_portenta:envie_m4 🔺 +712 - +3416 +0.07 - +0.33 ❔ -128 - +304 -0.04 - +0.1
arduino:mbed_portenta:envie_m7 🔺 +736 - +3360 +0.09 - +0.43 ❔ -128 - +312 -0.02 - +0.06
Click for full report table
Board examples/Threading/Demo_Shared_Counter
flash
% examples/Threading/Demo_Shared_Counter
RAM for global variables
% examples/Threading/Demo_Source_Sink_Counter
flash
% examples/Threading/Demo_Source_Sink_Counter
RAM for global variables
% examples/Threading/Demo_Source_Sink_LED
flash
% examples/Threading/Demo_Source_Sink_LED
RAM for global variables
% examples/Threadsafe_IO/Threadsafe_SPI
flash
% examples/Threadsafe_IO/Threadsafe_SPI
RAM for global variables
% examples/Threadsafe_IO/Threadsafe_SPI_BusIO
flash
% examples/Threadsafe_IO/Threadsafe_SPI_BusIO
RAM for global variables
% examples/Threadsafe_IO/Threadsafe_Serial_GlobalPrefixSuffix
flash
% examples/Threadsafe_IO/Threadsafe_Serial_GlobalPrefixSuffix
RAM for global variables
% examples/Threadsafe_IO/Threadsafe_Serial_ProtocolWrapping
flash
% examples/Threadsafe_IO/Threadsafe_Serial_ProtocolWrapping
RAM for global variables
% examples/Threadsafe_IO/Threadsafe_Serial_Reader
flash
% examples/Threadsafe_IO/Threadsafe_Serial_Reader
RAM for global variables
% examples/Threadsafe_IO/Threadsafe_Serial_Writer
flash
% examples/Threadsafe_IO/Threadsafe_Serial_Writer
RAM for global variables
% examples/Threadsafe_IO/Threadsafe_Wire
flash
% examples/Threadsafe_IO/Threadsafe_Wire
RAM for global variables
% examples/Threadsafe_IO/Threadsafe_Wire_BusIO
flash
% examples/Threadsafe_IO/Threadsafe_Wire_BusIO
RAM for global variables
%
arduino:mbed_nano:nano33ble 3104 0.32 312 0.12 2592 0.26 312 0.12 2592 0.26 312 0.12 2760 0.28 312 0.12 2760 0.28 312 0.12 1136 0.12 -72 -0.03 792 0.08 -128 -0.05 1424 0.14 -72 -0.03 1080 0.11 -72 -0.03 2768 0.28 312 0.12 2832 0.29 312 0.12
arduino:mbed_nano:nanorp2040connect 4 0.0 308 0.11 4 0.0 308 0.11 4 0.0 308 0.11 4 0.0 308 0.11 4 0.0 308 0.11 4 0.0 -72 -0.03 4 0.0 -128 -0.05 4 0.0 -72 -0.03 4 0.0 -72 -0.03 4 0.0 308 0.11 4 0.0 308 0.11
arduino:mbed_portenta:envie_m4 3416 0.33 304 0.1 2896 0.28 304 0.1 2896 0.28 304 0.1 3008 0.29 304 0.1 3072 0.29 304 0.1 1056 0.1 -72 -0.02 712 0.07 -128 -0.04 1336 0.13 -72 -0.02 928 0.09 -72 -0.02 3072 0.29 304 0.1 3008 0.29 304 0.1
arduino:mbed_portenta:envie_m7 3360 0.43 312 0.06 2904 0.37 312 0.06 2840 0.36 312 0.06 3088 0.39 312 0.06 3024 0.38 312 0.06 1080 0.14 -72 -0.01 736 0.09 -128 -0.02 1360 0.17 -72 -0.01 944 0.12 -72 -0.01 3088 0.39 312 0.06 3088 0.39 312 0.06
Click for full report CSV
Board,examples/Threading/Demo_Shared_Counter<br>flash,%,examples/Threading/Demo_Shared_Counter<br>RAM for global variables,%,examples/Threading/Demo_Source_Sink_Counter<br>flash,%,examples/Threading/Demo_Source_Sink_Counter<br>RAM for global variables,%,examples/Threading/Demo_Source_Sink_LED<br>flash,%,examples/Threading/Demo_Source_Sink_LED<br>RAM for global variables,%,examples/Threadsafe_IO/Threadsafe_SPI<br>flash,%,examples/Threadsafe_IO/Threadsafe_SPI<br>RAM for global variables,%,examples/Threadsafe_IO/Threadsafe_SPI_BusIO<br>flash,%,examples/Threadsafe_IO/Threadsafe_SPI_BusIO<br>RAM for global variables,%,examples/Threadsafe_IO/Threadsafe_Serial_GlobalPrefixSuffix<br>flash,%,examples/Threadsafe_IO/Threadsafe_Serial_GlobalPrefixSuffix<br>RAM for global variables,%,examples/Threadsafe_IO/Threadsafe_Serial_ProtocolWrapping<br>flash,%,examples/Threadsafe_IO/Threadsafe_Serial_ProtocolWrapping<br>RAM for global variables,%,examples/Threadsafe_IO/Threadsafe_Serial_Reader<br>flash,%,examples/Threadsafe_IO/Threadsafe_Serial_Reader<br>RAM for global variables,%,examples/Threadsafe_IO/Threadsafe_Serial_Writer<br>flash,%,examples/Threadsafe_IO/Threadsafe_Serial_Writer<br>RAM for global variables,%,examples/Threadsafe_IO/Threadsafe_Wire<br>flash,%,examples/Threadsafe_IO/Threadsafe_Wire<br>RAM for global variables,%,examples/Threadsafe_IO/Threadsafe_Wire_BusIO<br>flash,%,examples/Threadsafe_IO/Threadsafe_Wire_BusIO<br>RAM for global variables,%
arduino:mbed_nano:nano33ble,3104,0.32,312,0.12,2592,0.26,312,0.12,2592,0.26,312,0.12,2760,0.28,312,0.12,2760,0.28,312,0.12,1136,0.12,-72,-0.03,792,0.08,-128,-0.05,1424,0.14,-72,-0.03,1080,0.11,-72,-0.03,2768,0.28,312,0.12,2832,0.29,312,0.12
arduino:mbed_nano:nanorp2040connect,4,0.0,308,0.11,4,0.0,308,0.11,4,0.0,308,0.11,4,0.0,308,0.11,4,0.0,308,0.11,4,0.0,-72,-0.03,4,0.0,-128,-0.05,4,0.0,-72,-0.03,4,0.0,-72,-0.03,4,0.0,308,0.11,4,0.0,308,0.11
arduino:mbed_portenta:envie_m4,3416,0.33,304,0.1,2896,0.28,304,0.1,2896,0.28,304,0.1,3008,0.29,304,0.1,3072,0.29,304,0.1,1056,0.1,-72,-0.02,712,0.07,-128,-0.04,1336,0.13,-72,-0.02,928,0.09,-72,-0.02,3072,0.29,304,0.1,3008,0.29,304,0.1
arduino:mbed_portenta:envie_m7,3360,0.43,312,0.06,2904,0.37,312,0.06,2840,0.36,312,0.06,3088,0.39,312,0.06,3024,0.38,312,0.06,1080,0.14,-72,-0.01,736,0.09,-128,-0.02,1360,0.17,-72,-0.01,944,0.12,-72,-0.01,3088,0.39,312,0.06,3088,0.39,312,0.06

@aentinger aentinger marked this pull request as ready for review October 19, 2021 09:29
@aentinger aentinger merged commit e06adb3 into main Oct 19, 2021
@aentinger aentinger deleted the threads-for-examples branch October 19, 2021 10:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement Proposed improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant