Skip to content

Commit

Permalink
fix(lct/pcounter): exit recording thread if not needed
Browse files Browse the repository at this point in the history
  • Loading branch information
JiakunYan committed Jul 1, 2024
1 parent e132671 commit c19c76d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lct/pcounter/pcounter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,8 @@ void record_thread_fn(ctx_t* ctx, uint64_t record_interval)
else if (ctx->dump_record_on_the_fly) {
ctx->record();
ctx->dump(ctx->dump_ofile);
} else {
break;
}
usleep(record_interval);
}
Expand Down

0 comments on commit c19c76d

Please sign in to comment.