Esempio n. 1
0
 public void AddNewMethod(MeasuredMethod method)
 {
     if (_stackMethods.Count == 0)
     {
         Methods.Add(method);
     }
     else
     {
         _stackMethods.Peek().Methods.Add(method);
     }
     _stackMethods.Push(method);
 }
Esempio n. 2
0
        public MeasuredThread(int id, MethodBase method)
        {
            Id = id;
            var newMethod = new MeasuredMethod(method);

            if (_stackMethods.Count == 0)
            {
                Methods.Add(newMethod);
            }
            else
            {
                _stackMethods.Peek().Methods.Add(newMethod);
            }
            _stackMethods.Push(newMethod);
        }