Profiler: Add verbosity to context profiler
What
Add verbosity = Notice to all context profiler calls. If someone from the irmin/brassaia project decides it would be more appropriate that some calls are Info/Debug, please let me know.
Why
How
Manually testing the MR
Same output for all verbosity currently:
2024-11-07T14:44:20.185-00:00
BMVCKVmLZM1unGzRzzWkYWS4Q23m5eZ5MyYzA281V8y8Z5LBcRL ............................ 1 7076.396ms 2% +4s604.602ms
context_ops .................................................................. 0
add_predecessor_block_metadata_hash ........................................ 1 0.009ms 100%
add_predecessor_ops_metadata_hash .......................................... 1 0.002ms 105%
checkout ................................................................... 2 0.032ms 103%
checkout_exn ............................................................... 1 0.186ms 101%
commit ..................................................................... 1 1.182ms 98%
get_protocol ............................................................... 6 0.032ms 107%
get_test_chain ............................................................. 3 0.058ms 101%
2024-11-07T14:44:27.262-00:00
Checklist
-
Document the interface of any function added or modified (see the coding guidelines) -
Document any change to the user interface, including configuration parameters (see node configuration) -
Provide automatic testing (see the testing guide). -
For new features and bug fixes, add an item in the appropriate changelog ( docs/protocols/alpha.rstfor the protocol and the environment,CHANGES.rstat the root of the repository for everything else). -
Select suitable reviewers using the Reviewersfield below. -
Select as Assigneethe next person who should take action on that MR
Edited by Gabriel Moise