-
Notifications
You must be signed in to change notification settings - Fork 7
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
Possible to display time in flame graph? #47
Comments
Yes, it's possible to show actual time or at least number of stacktraces (flamegraph files do not contain info about time) |
yup, I use ubuntu and macos I checked that cflamegraph contains only 3 small classes and decided pushed it to repo so now it's not necessary to install flatbuffers.
You may also see unresolved package Tell me if you have any other issues.
|
BTW what profiler do you use? |
I see the pre-compiled classes in the latest commits. Thanks! Working on attaching a debugger so I can get a better grasp on it now. Entry point (File reading -> flatbuffer) is FileToCallTracesConverter.kt? |
Hi, There are two types of converters:
Also there is a It would be nice if you change I hope that you will not be too confused by all these converters. FlameViewer was my first complex project and I did not predict performance issues related to text flamegraphs. Now I will create issue for converting |
Note that we cannot remove deprecated |
Here is new related issue: #48 |
Thanks! I'll take a look. I'm juggling a couple things at work, so when I get a breather I'll poke around. If I'm comfortable enough with the changes I'll submit a PR. |
Sure, no worries :) |
I'm excluding tests right now due to the files I can't download (Windows). Using |
I was able to get everything working after running ~15 promising tasks. Not sure which one did it, but it's working! |
Ok, so I took a crack at moving to Compressed Flamegraphs for JFRs. Didn't go very well. I was able to avoid compiler errors, but getting a failure when moving the file to the cflamegraph folder. Will have to check later on the permissions and compare to a .ser file. Not seeing an exception thrown so I couldn't dig in. I did find promising news on adding a time dimension to the flamegraphs. When parsing the JFR file ( This would only work for sampled JFRs. No idea how to handle other types of profiling techniques which I think JFR supports. |
Task that prepares static files and compiles javaagent used to be Yup, probably we will add optional time field to cflamegraph, but it's a different task. You can create a [WIP] PR, so I can take a look! |
Hi, @brtubb-patagonia Steps to display time on popup:
Note that the displayed number will be either milliseconds (for yourkit files) or number of stacktraces (jfr files and uploaded flamegraph files). Issue about retrieving time from jfr: #54 Maybe we will add an optional field |
@kornilova-l Sorry for the delay, just getting back from vacation. I hope your trip to Finland went well! I''ll jump on these tasks this week. Once I get through these, do you want it as a PR? |
Yup, a PR to |
Still working on this... I've been having merge issues due to the invalid characters (under Windows) for some test files. I was able to resolve under WSL. Back at it :) |
I was able to get this working. Before I submit a PR, I want to run this by you. I don't have any yourkit files, so if you could double check before accepting a PR that'd be great! |
Good! Today I'll check commit in your master branch and think about 'samples' |
I tested your |
That makes sense, I'll submit a PR of master into the jfr branch you have. I agree - timeunits should really come from the backend. |
Submit to master |
Is there a concept of time (relative or absolute) available to display in the Call Traces or Back Traces?
Right now I'm going off of relative stack widths to find slow code to optimize. However, when I fix one slow section of code, it's hard to get a picture of how much time was saved.
The text was updated successfully, but these errors were encountered: