Пример #1
0
        private void StopCollector(TraceCollector collector)
        {
            collector.Stop();

            if (printSummary)
            {
                collector.PrintSummary();
            }
        }
Пример #2
0
        static void SetConsoleCtrlCHook(TraceCollector kernelCollector, TraceCollector userCollector)
        {
            // Set up Ctrl-C to stop both user mode and kernel mode sessions
            Console.CancelKeyPress += (object sender, ConsoleCancelEventArgs cancelArgs) => {
                cancelArgs.Cancel = true;
                kernelCollector.Stop();
                userCollector.Stop();

                stopEvent.Set();
            };
        }
Пример #3
0
        private void StopCollectors(TraceCollector collector1, TraceCollector collector2)
        {
            collector1.Stop();
            collector2.Stop();

            if (printSummary)
            {
                collector1.PrintSummary();
                collector2.PrintSummary();
            }
        }