Skip to content

Commit

Permalink
name time events "Time"
Browse files Browse the repository at this point in the history
  • Loading branch information
Tessa Todorowski authored and cvonelm committed Nov 14, 2024
1 parent d7a079b commit ebd23aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/perf/event_provider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -396,9 +396,9 @@ tracepoint::TracepointEvent EventProvider::create_tracepoint_event(const std::st
Event EventProvider::create_time_event(uint64_t local_time, bool enable_on_exec)
{
#ifndef USE_HW_BREAKPOINT_COMPAT
Event event("", PERF_TYPE_BREAKPOINT, 0); // TODO: name for time events
Event event("Time", PERF_TYPE_BREAKPOINT, 0); // TODO: name for time events
#else
Event event("", PERF_TYPE_HARDWARE, PERF_COUNT_HW_INSTRUCTIONS);
Event event("Time", PERF_TYPE_HARDWARE, PERF_COUNT_HW_INSTRUCTIONS);
#endif

event.sample_period(1); // may be overwritten by event.time_attrs
Expand Down

0 comments on commit ebd23aa

Please sign in to comment.