cpu: discover cpu counters from SpCaptureReader

This allows us to dynamically discover the cpu counters from the
capture by looking for the "CPU Total" category.
This commit is contained in:
Christian Hergert
2016-09-25 12:19:53 -07:00
parent 84c61c3344
commit 3b9ea07d31
6 changed files with 340 additions and 89 deletions

View File

@ -137,6 +137,7 @@ uiheadersdir = $(includedir)/sysprof-@API_VERSION@
uiheaders_DATA = \
sp-callgraph-view.h \
sp-cell-renderer-percent.h \
sp-cpu-visualizer-row.h \
sp-empty-state-view.h \
sp-failed-state-view.h \
sp-line-visualizer-row.h \
@ -154,6 +155,7 @@ libsysprof_ui_@API_VERSION@_la_SOURCES = \
$(uiheaders_DATA) \
sp-callgraph-view.c \
sp-cell-renderer-percent.c \
sp-cpu-visualizer-row.c \
sp-empty-state-view.c \
sp-failed-state-view.c \
sp-line-visualizer-row.c \