-
Notifications
You must be signed in to change notification settings - Fork 255
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
android simpleperf support #224
Comments
Hey! Can you please tell me why you think hotspot doesn't work for the embedded use-case? Are you passing the correct paths to e.g.
Quite a few people are using hotspot for embedded projects with arm architectures e.g. and it just works. So I wonder why it doesn't work for you? |
hotspot --kallsyms kallsyms --sysroot root --debugPaths symbols/ --arch arm64 perf.data When I use the Android simpleperf the hotspot is crash, if it can use perf script maybe prefect. |
python run_simpleperf_on_device.py record -e cpu-clock -e sched:sched_switch -a --call-graph fp --duration 45 and I use this command to get the perf.data. |
So the issue is a crash that occurs when you try to analyze the data as produced by simpleperf. |
Here's an example perf.data from simpleperf: simpleperf-20200425-perf.data (7.9 MB) I obtained this profile by following the instructions from https://github.com/acreskeyMoz/simpleperf_for_geckoview_example. I was profiling a locally-built Fenix on a Moto G5. |
The link to the text file references is the same as to the binary perf.data file. Can you get me a correct link please? |
Please try with the latest AppImage from the continuous build once it finishes. You should be able to parse the simpleperf data files then. Note that you'll have to provide the paths to the sysroot etc. to be able to resolve debug symbols. |
I've updated the link in the comment. |
Apparently android's simpleperf doesn't contain the HOSTNAME feature. Yet the data is still valid - trying to unbreak it would actually break it for real. Fixes: KDAB/hotspot#224 Change-Id: I0ed694a79fc731728edee8f6e2e3ba52717e2ea4
Apparently android's simpleperf doesn't contain the HOSTNAME feature. Yet the data is still valid - trying to unbreak it would actually break it for real. Fixes: KDAB/hotspot#224 Change-Id: I0ed694a79fc731728edee8f6e2e3ba52717e2ea4
Apparently android's simpleperf doesn't contain the HOSTNAME feature. Yet the data is still valid - trying to unbreak it would actually break it for real. Fixes: KDAB/hotspot#224 Change-Id: I0ed694a79fc731728edee8f6e2e3ba52717e2ea4 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Your application is perfect in x86 arch, but in embedded, it has a issue to used.
Can you develop analytics based on perf.script? Follow the steps of your document analysis to analyze the embedded perf.data, most of the time hotspot didn't work.
And many Android app can use simpleperf to get perf script, it's hard to use hotspot to analysis android app.
The text was updated successfully, but these errors were encountered: