Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Logging improvements#48

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
andreagilardoni wants to merge5 commits intoarduino-libraries:master
base:master
Choose a base branch
Loading
fromandreagilardoni:logging-improvements

Conversation

andreagilardoni
Copy link

The objective of this PR is to improving logging usage by:

  • allow the user to set a macro to define the level of logs that needs to be included in the binary
  • make use of better values for level definitions that may can used with a bit mask logic, which is faster than comparison
  • define logging level enum to restrict the possible values for debug levels
  • Added an example to show the usage of the compile time defined value

@github-actionsGitHub Actions
Copy link

Memory usage change @1a638a0

Boardflash%RAM for global variables%
arduino:avr:leonardo💚 -6 - -6-0.02 - -0.020 - 00.0 - 0.0
arduino:avr:mega💚 -6 - -6-0.0 - -0.00 - 00.0 - 0.0
arduino:avr:nano💚 -6 - -6-0.02 - -0.020 - 00.0 - 0.0
arduino:esp32:nano_nora0 - 00.0 - 0.00 - 00.0 - 0.0
arduino:mbed_giga:giga💚 -24 - -24-0.0 - -0.00 - 00.0 - 0.0
arduino:mbed_nano:nano33ble💚 -24 - -24-0.0 - -0.00 - 00.0 - 0.0
arduino:mbed_nano:nanorp2040connect💚 -2 - -2-0.0 - -0.00 - 00.0 - 0.0
arduino:mbed_nicla:nicla_vision💚 -24 - -24-0.0 - -0.00 - 00.0 - 0.0
arduino:mbed_opta:opta🔺 +40 - +400.0 - 0.00 - 00.0 - 0.0
arduino:mbed_portenta:envie_m7N/AN/AN/AN/A
arduino:mbed_portenta:envie_m7:target_core=cm4N/AN/AN/AN/A
arduino:megaavr:nona4809💚 -6 - -6-0.01 - -0.010 - 00.0 - 0.0
arduino:renesas_portenta:portenta_c330 - 00.0 - 0.00 - 00.0 - 0.0
arduino:renesas_uno:unor4wifi🔺 +8 - +80.0 - 0.00 - 00.0 - 0.0
arduino:sam:arduino_due_x_dbg0 - 00.0 - 0.0N/AN/A
arduino:samd:mkrzero0 - 00.0 - 0.00 - 00.0 - 0.0
Click for full report table
Boardexamples/Arduino_Debug_Basic
flash
%examples/Arduino_Debug_Basic
RAM for global variables
%examples/Arduino_Debug_Advance
flash
%examples/Arduino_Debug_Advance
RAM for global variables
%
arduino:avr:leonardo-6-0.0200.0-6-0.0200.0
arduino:avr:mega-6-0.000.0-6-0.000.0
arduino:avr:nano-6-0.0200.0-6-0.0200.0
arduino:esp32:nano_nora00.000.0
arduino:mbed_giga:giga-24-0.000.0
arduino:mbed_nano:nano33ble-24-0.000.0
arduino:mbed_nano:nanorp2040connect-2-0.000.0
arduino:mbed_nicla:nicla_vision-24-0.000.0
arduino:mbed_opta:opta400.000.0
arduino:mbed_portenta:envie_m7N/AN/AN/AN/A
arduino:mbed_portenta:envie_m7:target_core=cm4N/AN/AN/AN/A
arduino:megaavr:nona4809-6-0.0100.0-6-0.0100.0
arduino:renesas_portenta:portenta_c3300.000.0
arduino:renesas_uno:unor4wifi80.000.0
arduino:sam:arduino_due_x_dbg00.0N/AN/A
arduino:samd:mkrzero00.000.0
Click for full report CSV
Board,examples/Arduino_Debug_Basic<br>flash,%,examples/Arduino_Debug_Basic<br>RAM for global variables,%,examples/Arduino_Debug_Advance<br>flash,%,examples/Arduino_Debug_Advance<br>RAM for global variables,%arduino:avr:leonardo,-6,-0.02,0,0.0,-6,-0.02,0,0.0arduino:avr:mega,-6,-0.0,0,0.0,-6,-0.0,0,0.0arduino:avr:nano,-6,-0.02,0,0.0,-6,-0.02,0,0.0arduino:esp32:nano_nora,0,0.0,0,0.0,,,,arduino:mbed_giga:giga,-24,-0.0,0,0.0,,,,arduino:mbed_nano:nano33ble,-24,-0.0,0,0.0,,,,arduino:mbed_nano:nanorp2040connect,-2,-0.0,0,0.0,,,,arduino:mbed_nicla:nicla_vision,-24,-0.0,0,0.0,,,,arduino:mbed_opta:opta,40,0.0,0,0.0,,,,arduino:mbed_portenta:envie_m7,N/A,N/A,N/A,N/A,,,,arduino:mbed_portenta:envie_m7:target_core=cm4,N/A,N/A,N/A,N/A,,,,arduino:megaavr:nona4809,-6,-0.01,0,0.0,-6,-0.01,0,0.0arduino:renesas_portenta:portenta_c33,0,0.0,0,0.0,,,,arduino:renesas_uno:unor4wifi,8,0.0,0,0.0,,,,arduino:sam:arduino_due_x_dbg,0,0.0,N/A,N/A,,,,arduino:samd:mkrzero,0,0.0,0,0.0,,,,

@per1234per1234 added type: enhancementProposed improvement topic: codeRelated to content of the project itself labelsApr 7, 2025
Improve values of logging level to allow for bitwise operations forbitmask instead of comparison operator
in this way we are able to select the debug level that needs to beincluded in the sketch at compile time. The default value is to includeall the possible logs
@github-actionsGitHub Actions
Copy link

Memory usage change @5e5387c

Boardflash%RAM for global variables%
arduino:avr:leonardo💚 -6 - -6-0.02 - -0.020 - 00.0 - 0.0
arduino:avr:mega💚 -6 - -6-0.0 - -0.00 - 00.0 - 0.0
arduino:avr:nano💚 -6 - -6-0.02 - -0.020 - 00.0 - 0.0
arduino:esp32:nano_nora0 - 00.0 - 0.00 - 00.0 - 0.0
arduino:mbed_giga:giga💚 -24 - -24-0.0 - -0.00 - 00.0 - 0.0
arduino:mbed_nano:nano33ble💚 -24 - -24-0.0 - -0.00 - 00.0 - 0.0
arduino:mbed_nano:nanorp2040connect💚 -2 - -2-0.0 - -0.00 - 00.0 - 0.0
arduino:mbed_nicla:nicla_vision💚 -24 - -24-0.0 - -0.00 - 00.0 - 0.0
arduino:mbed_opta:opta🔺 +40 - +400.0 - 0.00 - 00.0 - 0.0
arduino:mbed_portenta:envie_m7N/AN/AN/AN/A
arduino:mbed_portenta:envie_m7:target_core=cm4N/AN/AN/AN/A
arduino:megaavr:nona4809💚 -6 - -6-0.01 - -0.010 - 00.0 - 0.0
arduino:renesas_portenta:portenta_c330 - 00.0 - 0.00 - 00.0 - 0.0
arduino:renesas_uno:unor4wifi🔺 +8 - +80.0 - 0.00 - 00.0 - 0.0
arduino:sam:arduino_due_x_dbg0 - 00.0 - 0.0N/AN/A
arduino:samd:mkrzero0 - 00.0 - 0.00 - 00.0 - 0.0
Click for full report table
Boardexamples/Arduino_Debug_Basic
flash
%examples/Arduino_Debug_Basic
RAM for global variables
%examples/Arduino_Debug_Advance
flash
%examples/Arduino_Debug_Advance
RAM for global variables
%
arduino:avr:leonardo-6-0.0200.0-6-0.0200.0
arduino:avr:mega-6-0.000.0-6-0.000.0
arduino:avr:nano-6-0.0200.0-6-0.0200.0
arduino:esp32:nano_nora00.000.0
arduino:mbed_giga:giga-24-0.000.0
arduino:mbed_nano:nano33ble-24-0.000.0
arduino:mbed_nano:nanorp2040connect-2-0.000.0
arduino:mbed_nicla:nicla_vision-24-0.000.0
arduino:mbed_opta:opta400.000.0
arduino:mbed_portenta:envie_m7N/AN/AN/AN/A
arduino:mbed_portenta:envie_m7:target_core=cm4N/AN/AN/AN/A
arduino:megaavr:nona4809-6-0.0100.0-6-0.0100.0
arduino:renesas_portenta:portenta_c3300.000.0
arduino:renesas_uno:unor4wifi80.000.0
arduino:sam:arduino_due_x_dbg00.0N/AN/A
arduino:samd:mkrzero00.000.0
Click for full report CSV
Board,examples/Arduino_Debug_Basic<br>flash,%,examples/Arduino_Debug_Basic<br>RAM for global variables,%,examples/Arduino_Debug_Advance<br>flash,%,examples/Arduino_Debug_Advance<br>RAM for global variables,%arduino:avr:leonardo,-6,-0.02,0,0.0,-6,-0.02,0,0.0arduino:avr:mega,-6,-0.0,0,0.0,-6,-0.0,0,0.0arduino:avr:nano,-6,-0.02,0,0.0,-6,-0.02,0,0.0arduino:esp32:nano_nora,0,0.0,0,0.0,,,,arduino:mbed_giga:giga,-24,-0.0,0,0.0,,,,arduino:mbed_nano:nano33ble,-24,-0.0,0,0.0,,,,arduino:mbed_nano:nanorp2040connect,-2,-0.0,0,0.0,,,,arduino:mbed_nicla:nicla_vision,-24,-0.0,0,0.0,,,,arduino:mbed_opta:opta,40,0.0,0,0.0,,,,arduino:mbed_portenta:envie_m7,N/A,N/A,N/A,N/A,,,,arduino:mbed_portenta:envie_m7:target_core=cm4,N/A,N/A,N/A,N/A,,,,arduino:megaavr:nona4809,-6,-0.01,0,0.0,-6,-0.01,0,0.0arduino:renesas_portenta:portenta_c33,0,0.0,0,0.0,,,,arduino:renesas_uno:unor4wifi,8,0.0,0,0.0,,,,arduino:sam:arduino_due_x_dbg,0,0.0,N/A,N/A,,,,arduino:samd:mkrzero,0,0.0,0,0.0,,,,

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
topic: codeRelated to content of the project itselftype: enhancementProposed improvement
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@andreagilardoni@per1234

[8]ページ先頭

©2009-2025 Movatter.jp