Skip to content

Commit

Permalink
Added Profiler.ProfileFrame as an example
Browse files Browse the repository at this point in the history
  • Loading branch information
clibequilibrium committed Oct 22, 2023
1 parent 816c02a commit 6136572
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/cs/samples/HelloWorld/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ internal static unsafe void Main(string[] args)
{
Delay();
ColoredEvent();

Profiler.ProfileFrame("Main"); // Put this after you have completed rendering the frame.
// Ideally that would be right after the swap buffers command.
// Note that this step is optional, as some applications (for example: a compression utility) do not have the concept of a frame
}

// Call it at the end of your program to free allocated memory
Expand Down

0 comments on commit 6136572

Please sign in to comment.