Coder Social home page Coder Social logo

Comments (4)

kornilova203 avatar kornilova203 commented on June 9, 2024

@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:

  1. No method was instrumented because configuration is incorrect
  2. 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.

jbeckers avatar jbeckers commented on June 9, 2024

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 profiler async 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.

kornilova203 avatar kornilova203 commented on June 9, 2024

@jbeckers Thanks for feedback! I will edit the description so other people hopefully will not have similar issues

from flameviewer.

jbeckers avatar jbeckers commented on June 9, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.