diff options
author | Yabin Cui <yabinc@google.com> | 2018-03-20 15:29:03 -0700 |
---|---|---|
committer | Yabin Cui <yabinc@google.com> | 2018-03-21 11:25:08 -0700 |
commit | cdc11a390138765046c8d730708b86c63aa3c488 (patch) | |
tree | 922d8d40634818769985fff131605ae35fbf6c26 /simpleperf/event_selection_set.h | |
parent | dd4f07b1396db2b95d9dddad03b743eaca462c53 (diff) | |
download | extras-cdc11a390138765046c8d730708b86c63aa3c488.tar.gz |
simpleperf: support profiling jited java code.
1. For each jit symfile, generate a Mmap2Record with a special flag
PROT_JIT_SYMFILE_MAP.
2. Call ReadMmapEventData() before dumping jit Mmap2Records, to keep
the order of samples and mmap records.
3. Handle finding symbols from maps with PROT_JIT_SYMFILE_MAP flags.
4. Pass PROT_JIT_SYMFILE_MAP flag to libunwindstack, to unwind
through jited methods.
Bug: http://b/73127105
Test: run simpleperf manually.
Test: run simpleperf_unit_test.
Change-Id: I2b2f77ff457f7eb2f10193e987a181e4791a29ee
Diffstat (limited to 'simpleperf/event_selection_set.h')
-rw-r--r-- | simpleperf/event_selection_set.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/simpleperf/event_selection_set.h b/simpleperf/event_selection_set.h index 7397c6fb..9e2a064c 100644 --- a/simpleperf/event_selection_set.h +++ b/simpleperf/event_selection_set.h @@ -128,6 +128,7 @@ class EventSelectionSet { bool ReadCounters(std::vector<CountersInfo>* counters); bool MmapEventFiles(size_t min_mmap_pages, size_t max_mmap_pages); bool PrepareToReadMmapEventData(const std::function<bool(Record*)>& callback); + bool ReadMmapEventData(); bool FinishReadMmapEventData(); // If monitored_cpus is empty, monitor all cpus. @@ -160,7 +161,6 @@ class EventSelectionSet { std::string* failed_event_type); bool MmapEventFiles(size_t mmap_pages, bool report_error); - bool ReadMmapEventData(); bool DetectCpuHotplugEvents(); bool HandleCpuOnlineEvent(int cpu); |