public EditorPerformanceMarker(string name, Type type)
 {
     m_TrackerHandle = EditorPerformanceTracker.GetOrCreateTrackerHandle(name, type);
 }
 public void Dispose()
 {
     EditorPerformanceTracker.StopTracker(m_WatchHandle);
     m_WatchHandle = -1;
 }
 // This constructor is for internal use only. If you do not provide a type, we cannot attribute it to
 // any assembly.
 internal EditorPerformanceMarker(string name)
 {
     m_TrackerHandle = EditorPerformanceTracker.GetOrCreateTrackerHandle(name);
 }
 internal AutoScope(ulong trackerHandle)
 {
     EditorPerformanceTracker.TryStartTrackerByHandle(trackerHandle, out m_WatchHandle);
 }