try to compilation fix on Linux

This commit is contained in:
IRainman 2025-03-24 12:38:49 +03:00
parent 1e3a135b8d
commit 23395e4f10

View File

@ -129,7 +129,7 @@ struct event_collector {
LinuxEvents<PERF_TYPE_HARDWARE> linux_events; LinuxEvents<PERF_TYPE_HARDWARE> linux_events;
event_collector() event_collector()
: linux_events(std::vector<int>{ : linux_events(std::array<int, event_counter_types_size>{
PERF_COUNT_HW_CPU_CYCLES, PERF_COUNT_HW_INSTRUCTIONS, PERF_COUNT_HW_CPU_CYCLES, PERF_COUNT_HW_INSTRUCTIONS,
PERF_COUNT_HW_BRANCH_INSTRUCTIONS, // Retired branch instructions PERF_COUNT_HW_BRANCH_INSTRUCTIONS, // Retired branch instructions
PERF_COUNT_HW_BRANCH_MISSES}) {} PERF_COUNT_HW_BRANCH_MISSES}) {}