Waiting for connect

Questions about YourKit Java Profiler
Post Reply
kevinoneill
Posts: 8
Joined: Thu Jan 13, 2005 4:12 am

Waiting for connect

Post by kevinoneill »

Is there a way (from eclipse preferably) to make to profiled application wait for a connection from the profiler?

-k.
Vladimir Kondratyev
Posts: 1626
Joined: Tue Aug 10, 2004 7:52 pm

Post by Vladimir Kondratyev »

For what purposes do you want this? If you want to start recording object allocation just from application startup, then there is an special option of profiler agent (this option is reflected in Eclipse UI as well)
kevinoneill
Posts: 8
Joined: Thu Jan 13, 2005 4:12 am

Post by kevinoneill »

I have a section of code that runs in a few seconds (from a test script) and I want to be able to take a couple of snaps as it runs. Not critical, I'm just used to being able to do this with a debugger.
Vladimir Kondratyev
Posts: 1626
Joined: Tue Aug 10, 2004 7:52 pm

Post by Vladimir Kondratyev »

Profiler has public API which allows to do such things. Please give a look at bundled samples.
Post Reply