... | ... | @@ -20,6 +20,14 @@ The piece of code that needs to be measured is enclosed within ```start_meas()`` |
|
|
|
|
|
The ```print_meas()``` and ```print_meas_log()``` functions can be called to print the measured stats onto ```stdout``` and to a ```char``` buffer respectively.
|
|
|
|
|
|
## Interpreting the Stats
|
|
|
|
|
|
The ```print_meas()``` and ```print_meas_log()``` prints in order
|
|
|
- Name of the measuring procedure (as given by the developer)
|
|
|
- Mean of the measured execution time
|
|
|
- Number of times the object is used to measure
|
|
|
- Maximum execution time ever recorded
|
|
|
|
|
|
# Example
|
|
|
|
|
|
An existing usage of the timing measurement tool is found in ```nr-gnb.c``` in function ```dump_L1_meas_stats``` which prints different levels of layer 1 timings to file ```nrL1_stats.log``` |
|
|
\ No newline at end of file |