summaryrefslogtreecommitdiff
path: root/simpleperf/event_selection_set.h
diff options
context:
space:
mode:
authorThiƩbaud Weksteen <tweek@google.com>2020-10-19 13:07:20 +0200
committerThiƩbaud Weksteen <tweek@google.com>2020-11-10 14:46:54 +0100
commitf5c93be9e0d028481e16f66bf06709b8182bf704 (patch)
tree1dddbe1a01d04136826346509a44bb78199947f6 /simpleperf/event_selection_set.h
parent2f34221d19c46c8fadb0b99b838343498d14103d (diff)
downloadextras-f5c93be9e0d028481e16f66bf06709b8182bf704.tar.gz
simpleperf: add "monitor" command
Introduce a new "monitor" command which combines the recording of events and the printing of their summary to stdout. There is a large overlap between the "monitor" and "record" command. Only basic functionality (i.e. system-wide collection) has been implemented, using the same logic as "record". If further functionality is required, a merging of both command logics should be done. Test: atest on crosshatch Change-Id: Ifd42d5e9cb9db144dc2bbbe7a7983570730e3f87
Diffstat (limited to 'simpleperf/event_selection_set.h')
-rw-r--r--simpleperf/event_selection_set.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/simpleperf/event_selection_set.h b/simpleperf/event_selection_set.h
index 8366ef43..c2e2408f 100644
--- a/simpleperf/event_selection_set.h
+++ b/simpleperf/event_selection_set.h
@@ -114,6 +114,7 @@ class EventSelectionSet {
bool ExcludeKernel() const;
bool HasAuxTrace() const { return has_aux_trace_; }
std::vector<EventAttrWithId> GetEventAttrWithId() const;
+ std::unordered_map<uint64_t, std::string> GetEventNamesById() const;
void SetEnableOnExec(bool enable);
bool GetEnableOnExec();