diff options
author | Yabin Cui <yabinc@google.com> | 2016-08-04 14:47:50 -0700 |
---|---|---|
committer | Yabin Cui <yabinc@google.com> | 2016-08-05 11:20:15 -0700 |
commit | fc22b8f4c033a4ab26b864e29308e1b96fe8d712 (patch) | |
tree | 105c96d72b99eba278698ce5778cda94904c3bbe /simpleperf/event_attr.h | |
parent | 2b29c4cea03712d4a32a6e606c13595986cca235 (diff) | |
download | extras-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.h | 1 |
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); |