Any way to trigger bookmarks from code?

Code profiling for .NET developers.

Any way to trigger bookmarks from code?

Postby TheZMan » Thu Jan 09, 2014 6:54 pm

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?

Posts: 6
Joined: Tue Oct 15, 2013 8:57 pm

Postby Ben Emmett » Fri Jan 10, 2014 2:50 pm

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

Unfortunately this doesn't let you bookmark regions at this time, though we're considering adding that capability in the future.
Ben Emmett
Posts: 4
Joined: Tue Dec 21, 2010 2:03 pm
Location: Cambridge

Return to ANTS Performance Profiler 8

Who is online

Users browsing this forum: No registered users and 0 guests