Git Product home page Git Product logo

Comments (9)

oehme avatar oehme commented on May 18, 2024

It doesn't profile warmups, you only get telemetry for warmups. That's normal, both Yourkit and JProfiler collect telemetry as soon as they are loaded. The actual CPU and memory hotspots are only from the profiled run.

@ingokegel is there some way to get a snapshot that starts at the moment the recording was started instead of when the agent was loaded?

from gradle-profiler.

ingokegel avatar ingokegel commented on May 18, 2024

Adding

invoke("startVMTelemetryRecording");

to JProfilerController.startNow() would clear the previous telemetry data. I'm not sure if that improves anything, though. The bookmarks in the telemetry views already show where the recording has started. Also, clearing the telemetry would not reset the time origin of the snapshot (this is currently not possible).

from gradle-profiler.

oehme avatar oehme commented on May 18, 2024

Thanks Ingo. The same is true for YourKit, so nothing we can change from the Gradle Profiler side.

from gradle-profiler.

cesar1000 avatar cesar1000 commented on May 18, 2024

Ah, I was meaning to ask about bookmarks - that certainly does the trick. By bookmarks do you mean the message events? I see the CPU sampling started/stopped event. Would it make sense to add other useful events from the chrome trace, like tasks starting?

from gradle-profiler.

oehme avatar oehme commented on May 18, 2024

That would only work when using method instrumentation, which adds a lot of overhead and skews the results. That being said, there is an open issue to support YourKit probes (#23), which would probably allow you to get this kind of more detailed info.

from gradle-profiler.

cesar1000 avatar cesar1000 commented on May 18, 2024

Why would you need method instrumentation though? Can't you use the same signals the chrome trace output is using? I generated both outputs in a single run of gradle-profiler, so I expected the traces in the chrome trace could just be added to the YourKit snapshot.

from gradle-profiler.

oehme avatar oehme commented on May 18, 2024

Oh I get it now, you'd inject logic that talks to the yourkit agent. Makes sense. Would you be interested to to look into this?

from gradle-profiler.

cesar1000 avatar cesar1000 commented on May 18, 2024

from gradle-profiler.

oehme avatar oehme commented on May 18, 2024

Closing since there was no more development here.

from gradle-profiler.

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.