mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 11:30:18 +00:00
Update line_profiler.c
This commit is contained in:
parent
af47a118f7
commit
2b7772d371
@ -89,6 +89,7 @@ c11_string* LineProfiler__get_report(LineProfiler* self) {
|
||||
LineRecord* lines = (LineRecord*)kv.value;
|
||||
for(int j = 1; j < line_record_length; j++) {
|
||||
// [<j>, <hits>, <time>]
|
||||
if(lines[j].hits == 0 && lines[j].time == 0) continue;
|
||||
c11_sbuf__write_cstr(&sbuf, "[");
|
||||
c11_sbuf__write_int(&sbuf, j);
|
||||
c11_sbuf__write_cstr(&sbuf, ", ");
|
||||
|
Loading…
x
Reference in New Issue
Block a user