mirror of
https://github.com/ZuneDev/MicrosoftIris.git
synced 2026-07-27 13:13:29 -07:00
Stinky hacks to make progress on Linux target
This commit is contained in:
@@ -35,7 +35,14 @@ namespace Microsoft.Iris.Debug
|
||||
if (s_isInitialized)
|
||||
return;
|
||||
s_isInitialized = true;
|
||||
#if WINDOWS
|
||||
NativeApi.SpInitializeTracing();
|
||||
#endif
|
||||
|
||||
#if DEBUG
|
||||
EnableAllCategories(true);
|
||||
#endif
|
||||
|
||||
TraceSettings.Current.Refresh();
|
||||
TraceSettings.Current.ListenForRegistryUpdates();
|
||||
}
|
||||
@@ -45,7 +52,9 @@ namespace Microsoft.Iris.Debug
|
||||
if (!s_isInitialized)
|
||||
return;
|
||||
TraceSettings.Current.StopListeningForRegistryUpdates();
|
||||
#if WINDOWS
|
||||
NativeApi.SpUninitializeTracing();
|
||||
#endif
|
||||
s_isInitialized = false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user