Update line_profiler.c

This commit is contained in:
blueloveTH 2025-08-08 14:48:56 +08:00
parent af47a118f7
commit 2b7772d371

View File

@ -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, ", ");