When I have a config similar to
perf_event_config {
timebase {
tracepoint {
name: "sched/sched_switch"
}
period: 1
}
followers {
raw_event {
type: 12
config: 17
}
name: "CPU_CYCLES"
}
followers {
raw_event {
type: 12
config: 8
}
name: "INST_RETIRED"
}
}
I would like to have a table like below, including column values such as CPU_CYCLES being in deltas rather than accumulated/sampled counter value.
| ts |
cpu |
sched_switch |
CPU_CYCLES |
INST_RETIRED |
| 891848972656 |
3 |
1 |
786603 |
2134024 |
This would allow me to calculate metrics like IPC (INST_RETIRED / CPU_CYCLES) as a new column easily.
Currently I do this with joining, grouping, hard-coded pivoting over using WINDOWed values (to calculate deltas) which seems like waste given this should be already available at perf data consumption.
When I have a config similar to
I would like to have a table like below, including column values such as CPU_CYCLES being in deltas rather than accumulated/sampled counter value.
This would allow me to calculate metrics like IPC (INST_RETIRED / CPU_CYCLES) as a new column easily.
Currently I do this with joining, grouping, hard-coded pivoting over using WINDOWed values (to calculate deltas) which seems like waste given this should be already available at perf data consumption.