Comments (4)
@jbeckers, When your program finishes you can see how many method calls were registered.
It looks like this:
Output file: /home/lk/.IntelliJIdea2017.3/system/flamegraph-profiler/log/untitled/Main-2018-01-23-23_06_13.ser
Configuration:
Including patterns:
*.*(*)
Methods count: 145
Process finished with exit code 0
If it is Methods count: 0
then there are two possible situations:
- No method was instrumented because configuration is incorrect
- All methods were quick and therefore were not registered (you do not want to use instrumentation profiler to collect info about small methods because in this case instrumentation adds visible overhead)
I think that in your case you have problem with configuration which is .(*)
The configuration is strange and I could not reproduce this result. It seems like it has empty class pattern and empty method pattern. my IDEA fields validation does not allow this.
Try to edit configuration so class pattern and method pattern is *
. It means that your configuration will look like this: *.*(*+)+
I personally often use Java Flight Recorder to collect info and then upload file to the visualizer. Try to run program with following VM options: -XX:+UnlockCommercialFeatures -XX:+FlightRecorder -XX:StartFlightRecording=duration=10s,filename=my_recording.jfr
and then open my_recording.jfr in visualizer. You may find this option more convenient and suitable for your needs.
If something is still unclear or it does not work then add comment to this issue. If there will be no comments I will close the issue.
from flameviewer.
Ok, thanks for the explanation. I do feel like a beginner wrt flamegraphs, this is valuable info.
Some findings so far:
- The configuration I used is the one you suggest. I think github must have scrambled it in the quote. I've now double checked and it's
*.*(*+)+
- I did not realize the results were only available after the program ended. This differs from other profilers.
- When I do wait until the end of the program, I see this:
Methods count: 0
JNIutil::init : 28E4FAA8
max user process virtual address = 7FFEFFFF
- There might be an issue where this plugin interferes with the new
debugging profilerasync stacktraces instrumenting agent included in IDEA. I'll try to disable that one. - Thanks for the jfr suggestion. Also on my list of things to try.
from flameviewer.
@jbeckers Thanks for feedback! I will edit the description so other people hopefully will not have similar issues
from flameviewer.
JFR indeed seems to be the way to go, it works perfectly. I couldn't get the flamegraph-profiler working.
from flameviewer.
Related Issues (20)
- Use FlatBuffers for cflamegraph files
- Text on flamegraph is blurry on MacBook
- Method time on back traces page does not match time on hotspots page HOT 1
- Display number of matches when search is active
- lang.LinkageError: loader (instance of sun/misc/Launcher$AppClassLoader): attempted duplicate class definition for name: "" HOT 1
- v0.81 doesn't work with CLion 2018.2.4 HOT 1
- Cannot upload a file using firefox HOT 2
- Filter multiple packages? HOT 2
- Possible to display time in flame graph? HOT 25
- Convert `jfr` files to `cflamegraph` instead of `flamegraph`
- FlameViewer ask for password? HOT 5
- Extract time from jfr files
- Make FlameViewer a standalone tool HOT 1
- Support async-profiler format HOT 1
- Show detailed error message to user when conversion failed
- Implement Level of Detail instead of hiding top layers of tree HOT 1
- Native perf support
- kotlin.KotlinNullPointerException HOT 5
- NullPointerException HOT 1
- Uploading a jfr resulted in versionNotSupportedException HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flameviewer.