add option --get-stack-consumption#268
Conversation
e2c0f34 to
e286c16
Compare
e286c16 to
4130664
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #268 +/- ##
==========================================
- Coverage 78.32% 77.55% -0.77%
==========================================
Files 36 36
Lines 2191 2228 +37
==========================================
+ Hits 1716 1728 +12
- Misses 475 500 +25
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
4130664 to
51bcb5d
Compare
55bbd5f to
2f534e8
Compare
2f534e8 to
3dc8cc7
Compare
It is not enough to pass the flag as environment variable - it's not handled by the SDK. |
yes, i need to update the SDK |
|
a4d6ffc to
aa33361
Compare
1d46321 to
d4909e6
Compare
|
iartemov-ledger
left a comment
There was a problem hiding this comment.
The maximum search works:
======================================================================================== stack consumption summary =========================================================================================
1177 bytes test_get_extended_pubkey.py::test_get_extended_pubkey_exception_nodisplay[flex]
1193 bytes test_get_extended_pubkey.py::test_get_extended_pubkey_non_standard[flex-flex]
1281 bytes test_get_extended_pubkey.py::test_get_extended_pubkey_non_standard_reject[flex-flex]
1281 bytes test_get_extended_pubkey.py::test_get_extended_pubkey_non_standard_reject_early[flex-flex]
1281 bytes test_get_extended_pubkey.py::test_get_extended_pubkey_nonstandard_display[flex-flex]
673 bytes test_get_extended_pubkey.py::test_get_extended_pubkey_nonstandard_nodisplay[flex]
1281 bytes test_get_extended_pubkey.py::test_get_extended_pubkey_standard_display[flex-flex]
1177 bytes test_get_extended_pubkey.py::test_get_extended_pubkey_standard_nodisplay[flex]
----------------------------------------------- worst case: 1281 bytes (test_get_extended_pubkey.py::test_get_extended_pubkey_standard_display[flex-flex]) ------------------------------------------------
A fix will be done in the SDK to make it work with DEBUG=0.
Maybe to pat attention to the Copilot remark below.



Adding a fixture to retrieve peak stack consumption in a test sequence.
DEBUG=1 DEBUG_OS_STACK_CONSUMPTION=1Now test sequences print a stack consumption summary :
The above example is an
app-bitcoin-newtest run of :