How can we help you today? How can we help you today?

Any way to trigger bookmarks from code?

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
TheZMan
0

Comments

1 comment

  • Ben Emmett
    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.
    Ben Emmett
    0

Add comment

Please sign in to leave a comment.