Skip to content

Commit a1728e3

Browse files
committed
fix: ignore metrics that use ref-cycles when ref-cycles not supported
Signed-off-by: Harper, Jason M <[email protected]>
1 parent 5103271 commit a1728e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/metrics/loader_perfmon_event_core.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ func (event CoreEvent) IsCollectable(metadata Metadata) bool {
120120
return false // Off-core response events are not supported in process or cgroup scope
121121
}
122122
}
123-
if !metadata.SupportsRefCycles && strings.Contains(event.EventName, "ref-cycles") {
123+
if !metadata.SupportsRefCycles && strings.Contains(event.EventName, "CPU_CLK_UNHALTED.REF_TSC") { // AKA ref-cycles
124124
slog.Debug("Ref-cycles events not supported", slog.String("event", event.EventName))
125125
return false // ref-cycles events are not supported
126126
}

0 commit comments

Comments
 (0)