Пример #1
0
 private static void DoSomeYetSomethingElse()
 {
     NamedMethodCommands.StartProcessing();
     NamedMethodCommands.EndProcessing();
     NamedMethodCommands.StartProcessing();
     NamedMethodCommands.ForceFlushProfiler();
     NamedMethodCommands.EnterMatryoshka();
     NamedMethodCommands.LeaveMatryoshka();
     NamedMethodCommands.ForceFlushProfiler();
 }
Пример #2
0
        static void Main(string[] args)
        {
            DoSomethingElse();
            DoSomeYetSomethingElse();

            for (int i = 0; i < 1000000; i++)
            {
                var x = AllocateSomething();
                NamedMethodCommands.ForceFlushProfiler();
                Thread.Sleep(1000);
            }
            Console.WriteLine("done");
        }