diff options
author | Yabin Cui <yabinc@google.com> | 2019-10-16 13:27:06 -0700 |
---|---|---|
committer | Yabin Cui <yabinc@google.com> | 2019-10-17 10:35:21 -0700 |
commit | b56d3aca94a39d4beb2e0e27d9e9fae9908d9ab6 (patch) | |
tree | 0d6aec8b02b17b23b017f8bf3b55bd885a17bb27 /simpleperf_report_lib.py | |
parent | c463a3e871abac8c4dd17ffdeeb1a66d3abc2fdf (diff) | |
download | simpleperf-b56d3aca94a39d4beb2e0e27d9e9fae9908d9ab6.tar.gz |
Update NDK prebuilts to build 5942325.
Taken from branch aosp-simpleperf-release.
Bug: none
Test: run test.py on darwin/linux/windows with devices and emulators.
Change-Id: I83b32a4a0c09ce62b9af3d3f1034a8e61459a116
Diffstat (limited to 'simpleperf_report_lib.py')
-rw-r--r-- | simpleperf_report_lib.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/simpleperf_report_lib.py b/simpleperf_report_lib.py index ab45b67..3e677be 100644 --- a/simpleperf_report_lib.py +++ b/simpleperf_report_lib.py @@ -240,6 +240,7 @@ class ReportLib(object): self._SetKallsymsFileFunc = self._lib.SetKallsymsFile self._ShowIpForUnknownSymbolFunc = self._lib.ShowIpForUnknownSymbol self._ShowArtFramesFunc = self._lib.ShowArtFrames + self._MergeJavaMethodsFunc = self._lib.MergeJavaMethods self._GetNextSampleFunc = self._lib.GetNextSample self._GetNextSampleFunc.restype = ct.POINTER(SampleStruct) self._GetEventOfCurrentSampleFunc = self._lib.GetEventOfCurrentSample @@ -294,6 +295,17 @@ class ReportLib(object): """ Show frames of internal methods of the Java interpreter. """ self._ShowArtFramesFunc(self.getInstance(), show) + def MergeJavaMethods(self, merge=True): + """ This option merges jitted java methods with the same name but in different jit + symfiles. If possible, it also merges jitted methods with interpreted methods, + by mapping jitted methods to their corresponding dex files. + Side effects: + It only works at method level, not instruction level. + It makes symbol.vaddr_in_file and symbol.mapping not accurate for jitted methods. + Java methods are merged by default. + """ + self._MergeJavaMethodsFunc(self.getInstance(), merge) + def SetKallsymsFile(self, kallsym_file): """ Set the file path to a copy of the /proc/kallsyms file (for off device decoding) """ cond = self._SetKallsymsFileFunc(self.getInstance(), _char_pt(kallsym_file)) |