private static TimingThread CreateNewTimingThread() { var instance = new TimingThread(); int index = TimingService.RegisterThread(instance); instance.Init(index); return(instance); }
public ChromeTraceTimingConsumer(string filename) { m_invFrequencyToMicros = 1000000.0 / (double)Stopwatch.Frequency; var fs = new FileStream(filename, FileMode.Create, FileAccess.Write, FileShare.ReadWrite | FileShare.Delete); m_writer = new StreamWriter(fs); m_writer.WriteLine("[ { }"); m_writer.Flush(); TimingService.AddListener(Flush); }