summaryrefslogtreecommitdiff
path: root/simpleperf/event_attr.h
diff options
context:
space:
mode:
authorYabin Cui <yabinc@google.com>2016-08-04 14:47:50 -0700
committerYabin Cui <yabinc@google.com>2016-08-05 11:20:15 -0700
commitfc22b8f4c033a4ab26b864e29308e1b96fe8d712 (patch)
tree105c96d72b99eba278698ce5778cda94904c3bbe /simpleperf/event_attr.h
parent2b29c4cea03712d4a32a6e606c13595986cca235 (diff)
downloadextras-fc22b8f4c033a4ab26b864e29308e1b96fe8d712.tar.gz
simpleperf: reduce Record construction overhead while recording.
Avoid binary allocation and memory copy in ReadRecordsFromBuffer(), thus reduce Record construction overhead in EventSelectionSet::ReadMmapEventDataForFd(). Remove RecordCache used while recording. Replace it with RecordFileWriter::SortDataSection(). For unwinding while recording, use low watermark to make records almost sorted when dumped from the kernel. Bug: 30649868 Test: run simpleperf_unit_test. Change-Id: Ie5fb942046900a5960b3c990cf4177c026eaadfb
Diffstat (limited to 'simpleperf/event_attr.h')
-rw-r--r--simpleperf/event_attr.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/simpleperf/event_attr.h b/simpleperf/event_attr.h
index 030f7c9f..9182bb9d 100644
--- a/simpleperf/event_attr.h
+++ b/simpleperf/event_attr.h
@@ -32,6 +32,7 @@ bool GetCommonEventIdPositionsForAttrs(std::vector<perf_event_attr>& attrs,
size_t* event_id_pos_in_sample_records,
size_t* event_id_reverse_pos_in_non_sample_records);
bool IsTimestampSupported(const perf_event_attr& attr);
+bool IsCpuSupported(const perf_event_attr& attr);
// Return event name with modifier if the event is found, otherwise return "unknown".
std::string GetEventNameByAttr(const perf_event_attr& attr);