Opening zipped snapshots

Questions about YourKit Java Profiler
Post Reply
plethora
Posts: 314
Joined: Thu Jun 02, 2005 8:36 pm

Opening zipped snapshots

Post by plethora »

A relatively trivial feature request.

Are snapshots read in sequential fashion?
If so, it might make sense to allow the used to directly open a snapshot inside a .zip file.
Vladimir Kondratyev
Posts: 1619
Joined: Tue Aug 10, 2004 7:52 pm

Post by Vladimir Kondratyev »

As I understood you want to open ZIPped snapshot files, right? Unfortunately snapshots are not read sequentially. We can unzip snapshot in temporary directory and then open it. Will it be convenient for you?

Best regards,
Vladimir Kondratyev
YourKit, LLC
http://www.yourkit.com
"Don't get lost in data, get information!"
Last edited by Vladimir Kondratyev on Mon May 28, 2007 11:50 am, edited 1 time in total.
plethora
Posts: 314
Joined: Thu Jun 02, 2005 8:36 pm

Post by plethora »

That would be convenient.
Vladimir Kondratyev
Posts: 1619
Joined: Tue Aug 10, 2004 7:52 pm

Post by Vladimir Kondratyev »

I've added corresponded feature request
dashorst
Posts: 5
Joined: Fri Jul 06, 2007 3:25 pm

Post by dashorst »

Please add gzip support too.
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Post by Anton Katilin »

We'll support it as well. Thank you for the suggestion.
plethora
Posts: 314
Joined: Thu Jun 02, 2005 8:36 pm

Post by plethora »

Any change of this making it into the 7.0 release?

I'm working a lot with snapshots from IDEA, which are zipped by default..
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Post by Anton Katilin »

Hello,

Opening zipped snapshots was not implemented in 7.0 so far.

Could you please provide more detail on the nature of zipped snapshots you deal with?

In particular, is there only one snapshot per ZIP, or should a directory tree inside the ZIP be managed?

Also, just curious, were do you get the zipped snapshots from? I.e. what for the zipping is used?
plethora
Posts: 314
Joined: Thu Jun 02, 2005 8:36 pm

Post by plethora »

Anton, it's simply the bundled agent in IntelliJ. As far as I know IDEA captures snapshot through agent API, then zips it up and deletes the original file.

So: one file in archive only, no directory structure.
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Post by Anton Katilin »

Could you please try this yjp.jar (write it over <build 2088 installation>\lib\yjp.jar):

http://www.yourkit.com/download/20070827/yjp.jar

To open zipped snapshot:

- Ctrl+O
- "Open Snapshot Not Listed Here"
- *.zip <Enter>
plethora
Posts: 314
Joined: Thu Jun 02, 2005 8:36 pm

Post by plethora »

Works fine.

Small possible improvements:
-include ZIP extraction in the progress bar (now it just sits for 10 seconds without giving me progress feedback)
-Perhaps file open dialog could have "*.zip" as a choice in filter combo box?
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Post by Anton Katilin »

Done (instead of "*.zip", "All Files" filter added, as more generic).

Please try http://www.yourkit.com/download/20070827/2/yjp.jar
plethora
Posts: 314
Joined: Thu Jun 02, 2005 8:36 pm

Post by plethora »

Thanks, I've just tried the second "yjp.jar", and it works well.
This takes care of the manual work of opening zipped snapshots.

It would be nice to see them in the "recent snapshots" list as well, but that's less important.
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Post by Anton Katilin »

Unpacked snapshot should appear in the recent list. Doesn't it?
plethora
Posts: 314
Joined: Thu Jun 02, 2005 8:36 pm

Post by plethora »

It does indeed appear.

I stand corrected.
Post Reply