Ejemplo n.º 1
0
        public void StartTrace(string filename, CollectionLevel level)
        {
            m_filename = filename;
            // TODO(segilles) - respect the level argument.
            Process proc = Process.Start(PerfView, string.Format(PerfViewCommandLineGcOnly, filename));

            proc.WaitForExit();
            if (proc.ExitCode != 0)
            {
                throw new InvalidOperationException($"PerfView exited with unexpected exit code: {proc.ExitCode}");
            }

            // PerfView exits immediately, without starting the session. We sleep here to ensure
            // that we don't start the benchmark until PerfView is ready. Five seconds should be long enough.
            Thread.Sleep(5000);
        }
Ejemplo n.º 2
0
 public void StartTrace(string filename, CollectionLevel level)
 {
 }
Ejemplo n.º 3
0
 public void StartTrace(string filename, CollectionLevel level)
 {
     throw new NotImplementedException();
 }