Exemple #1
0
 public void MyMethod()
 {
     _tracer.StartTrace();
     Thread.Sleep(50);
     _bar.InnerMethod();
     _tracer.StopTrace();
 }
Exemple #2
0
        public void MyMethod()
        {
            _tracer.StartTrace();


            var arr = new List <int>()
            {
                1, 23, 4, 5, 34, 4, 34, 55, 3232, 1234, 1, 67, 34, 6, 4, 6, 409, 555, 5456
            };
            var arr2 = new List <int>();

            foreach (int a in arr)
            {
                arr2.Add(a + 56);
            }
            _bar.InnerMethod();


            foreach (int a in arr2)
            {
                arr.Add(a * 2);
            }

            _tracer.StopTrace();
        }
Exemple #3
0
 public void AnotherMethod()
 {
     _tracer.StartTrace();
     while (n != 0)
     {
         n--;
         AnotherMethod();
         _bar.InnerMethod();
     }
     Thread.Sleep(50);
     _tracer.StopTrace();
 }