Skip to content

Commit

Permalink
add more log outputs to lct pcounter
Browse files Browse the repository at this point in the history
  • Loading branch information
JiakunYan committed Mar 21, 2024
1 parent a511783 commit e6e36e9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lct/pcounter/pcounter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,8 @@ struct ctx_t {

void record_thread_fn(ctx_t* ctx, uint64_t record_interval)
{
LCT_Log(LCT_log_ctx_default, LCT_LOG_INFO, "pcounter",
"recording thread init\n");
while (ctx->keep_recording) {
if (ctx->dump_record_on_the_fly_lw)
ctx->do_record = true;
Expand All @@ -471,6 +473,8 @@ void record_thread_fn(ctx_t* ctx, uint64_t record_interval)
}
usleep(record_interval);
}
LCT_Log(LCT_log_ctx_default, LCT_LOG_INFO, "pcounter",
"recording thread exit\n");
}
std::atomic<int> ctx_t::next_id(0);
LCT_time_t ctx_t::start_time = -1;
Expand Down

0 comments on commit e6e36e9

Please sign in to comment.