Lines Matching refs:metrics
1 Using TopDown metrics in user space
23 With Ice Lake CPUs the TopDown metrics are directly available as
54 The metrics counter is CPU model specific and is not available on older
99 * Open metrics event file descriptor for current task.
102 struct perf_event_attr metrics = {
109 int metrics_fd = perf_event_open(&metrics, 0, -1, slots_fd, 0);
115 to read slots and the topdown metrics at different points of the program:
136 Then the program can be instrumented to read these metrics at different
144 Decoding metrics values
164 specific sections. For this it is needed to deltas on metrics.
166 This can be done by scaling the metrics with the slots counter
170 measured at different points, and determine the metrics
181 # compute scaled metrics for measurement a
187 # compute delta scaled metrics between b and a
208 Resetting metrics counters
211 Since the individual metrics are only 8bit they lose precision for