Fix C# profiler events from other threads

This commit is contained in:
Wojtek Figat
2021-06-12 20:10:16 +02:00
parent 93cdb7ce8f
commit 25c00a0d55
3 changed files with 29 additions and 16 deletions

View File

@@ -289,6 +289,11 @@ public:
/// </summary>
/// <param name="index">The event index returned by the BeginEvent method.</param>
void EndEvent(int32 index);
/// <summary>
/// Ends the last event running on a this thread.
/// </summary>
void EndEvent();
};
public:
@@ -341,6 +346,11 @@ public:
/// <param name="index">The event index returned by the BeginEvent method.</param>
static void EndEvent(int32 index);
/// <summary>
/// Ends the last event.
/// </summary>
static void EndEvent();
/// <summary>
/// Releases resources. Calls to the profiling API after Dispose are not valid.
/// </summary>