-
Notifications
You must be signed in to change notification settings - Fork 410
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
Import simpleperf profiles #2514
Comments
I'm just a bit surprised because we did some work in #2011. Or is this bug about that we want to import the output of Also from my earlier testing with just linux I'd be interested to know if the instructions in https://github.com/acreskeyMoz/simpleperf_for_geckoview_example still work for us. Also we could look at them and decide what we can do to simplify that. |
I agree with Julien: The output of
For the |
I'm surprised there's nothing like |
Here's the code from the android repo that can parse the raw simpleperf format: SimpleperfTraceParser.java. It makes use of ProtoBuf generated code, generated from Piping that proto file through protoc (downloaded from here) with the command line |
Nevermind, I'm not quite sure which format SimpleperfTraceParser parses - it's a format that starts with the magic header "SIMPLEPERF". But that's different from the perf.data format: The perf.data format has the magic header "PERFILE2". Here's the simpleperf code that parses perf.data: |
As for profiling vs symbolicating, the responsibilities seems to be as follows:
In other words, if we want to import the perf.data file, we'll get the raw addresses and library information, but we'll have to do symbolication ourselves. |
This format is produced by the |
Well, hotspot at least seems to use the perf.data file directly. So maybe in theory it could be adjusted to work with the simpleperf flavour of this file, too. But simply opening a perf.data file with hotspot gives:
|
... which is KDAB/hotspot#224 . |
FWIW, I have had success with importing
And importing the So I think we might be able to close this issue? |
Sounds good! Glad it's working. |
We should support imported simpleperf profiles, as these are part of the Android profiling experience. They are close to the linux-perf profile format. When I took a stab at this, I got the generated HTML file that Android Studio saved for me, and worked on parsing the data out of the HTML file. I got stuck on updating the regex we have in our source to handle the slightly different data. This was awhile back, or else I'd share more details.
The text was updated successfully, but these errors were encountered: