internal static void FlushAll() { ChoProfile.DisposeAll(); //ChoStreamProfile.Shutdown(); foreach (TraceListener traceListener in Trace.Listeners) { if (traceListener == null) { continue; } traceListener.Flush(); } }
private static void Shutdown() { ChoProfile.DisposeAll(); if (_pbsDataChangeWatcher != null) { _pbsDataChangeWatcher.Dispose(); } _pbsDataChangeWatcher = null; ChoProfile.Default.Dispose(); _pbsStore.ForEach((keyValuePair) => { if (_profileBackingStopActionsCache.ContainsKey(keyValuePair.Key)) { keyValuePair.Value.Stop(_profileBackingStopActionsCache[keyValuePair.Key]); } }); //_profilerCache.Clear(); _profileBackingStopActionsCache.Clear(); }