Red Gate forums :: View topic - Any way to trigger bookmarks from code?
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
ANTS Performance Profiler 8
ANTS Performance Profiler 8 forum

Any way to trigger bookmarks from code?

Search in ANTS Performance Profiler 8 forum
Post new topic   Reply to topic
Jump to:  
Author Message
TheZMan



Joined: 15 Oct 2013
Posts: 6

PostPosted: Thu Jan 09, 2014 7:54 pm    Post subject: Any way to trigger bookmarks from code? Reply with quote

I'm trying to profile a game and I would love to get a bookmark for specific part of the code. Even per frame would be awesome.

In memory profiler there's a trigger API but I can't find anything in performance profiler - is there anything?

Thanks
Back to top
View user's profile Send private message
Ben Emmett



Joined: 21 Dec 2010
Posts: 2
Location: Cambridge

PostPosted: Fri Jan 10, 2014 3:50 pm    Post subject: Reply with quote

There's a DLL in the ANTS install directory called RedGate.Profiler.UserEvents.dll. If you reference it in your project, you can place an event marker on the timeline by calling

RedGate.Profiler.UserEvents.ProfilerEvent.SignalEvent("A message");

You can use that to see when a particular line of code ran. This is described at the bottom of http://documentation.red-gate.com/display/APP8/Working+with+the+timeline#.

Unfortunately this doesn't let you bookmark regions at this time, though we're considering adding that capability in the future.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group