Skip to content

Commit

Permalink
fix: diffs when building or importing (#1201)
Browse files Browse the repository at this point in the history
  • Loading branch information
homuler committed Jun 23, 2024
1 parent 4bae91d commit b795a98
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ public static (int, TaskRunner.NativePacketsCallback) Add(TaskRunner.PacketsCall
[AOT.MonoPInvokeCallback(typeof(TaskRunner.NativePacketsCallback))]
private static void InvokeCallbackIfFound(int callbackId, IntPtr statusPtr, IntPtr packetMapPtr)
{
Profiler.BeginThreadProfiling("Mediapipe", "PacketsCallbackTable.InvokeCallbackIfFound");
Profiler.BeginSample("PacketsCallbackTable.InvokeCallbackIfFound");
UnityEngine.Profiling.Profiler.BeginThreadProfiling("Mediapipe", "PacketsCallbackTable.InvokeCallbackIfFound");
UnityEngine.Profiling.Profiler.BeginSample("PacketsCallbackTable.InvokeCallbackIfFound");

// NOTE: if status is not OK, packetMap will be nullptr
if (packetMapPtr == IntPtr.Zero)
Expand All @@ -60,8 +60,8 @@ private static void InvokeCallbackIfFound(int callbackId, IntPtr statusPtr, IntP
}
}

Profiler.EndSample();
Profiler.EndThreadProfiling();
UnityEngine.Profiling.Profiler.EndSample();
UnityEngine.Profiling.Profiler.EndThreadProfiling();
}
}
}

0 comments on commit b795a98

Please sign in to comment.