Skip to content

Commit

Permalink
Merge pull request #70 from DataDog/jb/ctimer_default
Browse files Browse the repository at this point in the history
Use CTimer as default
  • Loading branch information
richardstartin authored Feb 12, 2024
2 parents d6c6797 + 6a268f8 commit b7cd146
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ddprof-lib/src/main/cpp/profiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -960,7 +960,7 @@ Engine* Profiler::selectCpuEngine(Arguments& args) {
// signal based samplers are unstable on J9 before 8.0.362, 11.0.18 and 17.0.6
return (Engine*)&j9_engine;
}
return !perf_events.check(args) ? (Engine*)&perf_events : (!ctimer.check(args) ? (Engine*)&ctimer : (Engine*)&itimer);
return !ctimer.check(args) ? (Engine*)&ctimer : (!perf_events.check(args) ? (Engine*)&perf_events : (Engine*)&itimer);
} else if (strcmp(args._event, EVENT_WALL) == 0) {
return &noop_engine;
} else if (strcmp(args._event, EVENT_ITIMER) == 0) {
Expand Down

0 comments on commit b7cd146

Please sign in to comment.