API to control profiling (start, stop, create snapshot)?

Questions about YourKit .NET Profiler
Post Reply
MRBihy
Posts: 2
Joined: Fri Apr 18, 2008 12:51 pm

API to control profiling (start, stop, create snapshot)?

Post by MRBihy »

Hi everybody!

We are evaluating your product YourKit Profiler 3.0 for .NET (3.0.5, 4 March 2008) and need to know if it's possible to control profiling from within our ASP.NET application via API. We have some rather large methods and need to turn profiling on at some place in the code and then turn it off again at some other line. Same thing is true for taking snapshots.
Is this possible?

I've already had some experience with another product called JProbe back in 1999 and 2000. They had an API which allowed control of profiling
from within the application.

best regards

Manfred
Vladimir Kondratyev
Posts: 1624
Joined: Tue Aug 10, 2004 7:52 pm

Post by Vladimir Kondratyev »

At the moment there is no public API which allows to control profiler modes, but we are working on it. So I believe that it will appear in the nearest future.

Best regards,
Vladimir Kondratyev
YourKit, LLC
http://www.yourkit.com
"Don't get lost in data, get information!"
Calandale
Posts: 6
Joined: Thu Oct 30, 2008 2:14 pm

Re: API to control profiling (start, stop, create snapshot)?

Post by Calandale »

I'm supposing that this feature has not been added?

As an alternative, is there any means of running the profiler from the command line,
without opening the GUI? We are considering methods of automatically profiling, and this looks like a
useful feature.
Vladimir Kondratyev
Posts: 1624
Joined: Tue Aug 10, 2004 7:52 pm

Re: API to control profiling (start, stop, create snapshot)?

Post by Vladimir Kondratyev »

API will be available in the next version of profiler. EAP builds will be open soon.
Calandale
Posts: 6
Joined: Thu Oct 30, 2008 2:14 pm

Re: API to control profiling (start, stop, create snapshot)?

Post by Calandale »

Cool.

Is there a way of setting timed snapshots, from the GUI?
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Re: API to control profiling (start, stop, create snapshot)?

Post by Anton Katilin »

Currently not, but this functionality will most likely appear in next version. EAP will start soon.
Vladimir Kondratyev
Posts: 1624
Joined: Tue Aug 10, 2004 7:52 pm

Re: API to control profiling (start, stop, create snapshot)?

Post by Vladimir Kondratyev »

Recently we have released version 4.0 of YourKit Profiler for .NET, and now it's
possible to use API to control profiling. Here is the link on documentation:

http://www.yourkit.com/docs/net40/help/api.jsp
Post Reply