Add feature to track allocations in libtock-rs and print statistics to the console.

This commit is contained in:
Guillaume Endignoux
2020-03-02 16:02:03 +01:00
parent d6661a09c3
commit 495b32b7e0
3 changed files with 107 additions and 0 deletions

View File

@@ -366,6 +366,14 @@ if __name__ == '__main__':
"output messages before starting blinking the LEDs on the "
"board."),
)
app_commands.add_argument(
"--debug-allocations",
action="append_const",
const="debug_allocations",
dest="features",
help=("The console will be used to output allocator statistics every "
"yime an allocation/deallocation happens."),
)
app_commands.add_argument(
"--no-u2f",
action=RemoveConstAction,