Time-Limiting performance snapshot

Questions about YourKit Java Profiler
Post Reply
mbickel
Posts: 3
Joined: Thu Apr 13, 2017 3:54 pm

Time-Limiting performance snapshot

Post by mbickel »

Hi,

I feel a bit stupid since this seems like such an obvious thing. I captured a performance snapshot from an attached agent with about 30 minutes of cpu sampling data.

Now, the profiler was already connected and sampling had been running for a while before the actual action started. I know I want exactly 30 minutes of the action to compare it to another snapshot of that length.

How can I tell Yourkit to "crop" a snapshot of cpu sampling to an exact timeframe? I want to discard all information outside of a given timebox.
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Re: Time-Limiting performance snapshot

Post by Anton Katilin »

Hello,

CPU sampling aggregates time per thread and stack trace for the entire CPU sampling session period, it is impossible to extract the numbers for a given time sub-range.

Unlike sampling, the CPU usage estimation feature allows you to choose arbitrary time range:
https://www.yourkit.com/docs/java/help/ ... mation.jsp

(In particular, please see the "Comparison with CPU sampling" section.)
mbickel
Posts: 3
Joined: Thu Apr 13, 2017 3:54 pm

Re: Time-Limiting performance snapshot

Post by mbickel »

Ah, that makes sense. Thanks for the swift reply!
mbickel
Posts: 3
Joined: Thu Apr 13, 2017 3:54 pm

Re: Time-Limiting performance snapshot

Post by mbickel »

...erased...
Is that a question? Or do you have a similar problem?
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Re: Time-Limiting performance snapshot

Post by Anton Katilin »

No, that was a spammer with a random message.
Post Reply