Skip to content

Commit

Permalink
fix a bug with the single threaded nugget profiling helper
Browse files Browse the repository at this point in the history
  • Loading branch information
studyztp committed Oct 10, 2024
1 parent 708fd83 commit 8ff7f20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/single_thread_c_helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ __attribute__((no_profile_instrument_function))
void bb_hook(unsigned long long bb_inst, unsigned long long bb_id, unsigned long long threshold) {
if (if_start) {
counter += bb_inst;
bbv[bb_id] += bb_inst;
bbv[bb_id] += 1;
timestamp[bb_id] = counter;
if (counter > threshold) {
process_data();
Expand Down

0 comments on commit 8ff7f20

Please sign in to comment.