Real-time application frame profiling

Questions about YourKit Java Profiler
Locked
Flare
Posts: 1
Joined: Tue Jul 26, 2022 9:25 am

Real-time application frame profiling

Post by Flare »

Hi,

I'm trying to profile a real-time application that runs in units of frames (around a dozen milliseconds each)
Is it possible to isolate singular frames in YourKit to figure out what caused spikes? Perhaps using the API?

Thanks!
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Re: Real-time application frame profiling

Post by Anton Katilin »

Hi,

Yes, you can try using the API: https://www.yourkit.com/docs/java/help/api.jsp

To get a series of snapshots for long frames, start profiling, then for each frame clear profiling results when the frame begins, and when it ends capture a performance snapshot if it took significant time.

When profiling in sampling mode, you may want to set smaller sampling period (for periodic sampling) or CPU threshold (for asynchronous CPU sampling) to make results more precise: https://www.yourkit.com/docs/java/help/ ... ttings.jsp

Best regards,
Anton
Locked