示例#1
0
        private void Stop(DiagnoserActionParameters parameters)
        {
            WaitForDelayedEvents();
            string userSessionFile;

            try
            {
                kernelSession.Stop();
                heapSession?.Stop();
                userSession.Stop();

                userSessionFile = userSession.FilePath;
            }
            finally
            {
                kernelSession.Dispose();
                heapSession?.Dispose();
                userSession.Dispose();
            }

            // Merge the 'primary' etl file X.etl (userSession) with any files that match .clr*.etl .user*.etl. and .kernel.etl.
            TraceEventSession.MergeInPlace(userSessionFile, TextWriter.Null);

            benchmarkToEtlFile[parameters.BenchmarkCase] = userSessionFile;
        }
示例#2
0
        private void Stop(DiagnoserActionParameters parameters)
        {
            try
            {
                kernelSession.Stop();
                userSession.Stop();

                benchmarkToEtlFile[parameters.BenchmarkCase] = userSession.MergeFiles(kernelSession);
            }
            finally
            {
                kernelSession.Dispose();
                userSession.Dispose();
            }
        }