예제 #1
0
 public void AppendCallstack(CallStackItem callStack)
 {
     if (MyCallstackItem.IsNull() || MyCallstackItem.CallStack.IsNull())
     {
         return;
     }
     MyCallstackItem.CallStack.Add(callStack);
 }
예제 #2
0
 private void SetTimings()
 {
     if (MyCallstackItem.IsNull())
     {
         return;
     }
     MyCallstackItem.EndTimeStamp  = DateTime.Now;
     MyCallstackItem.ExecutionTime = timer.ElapsedMilliseconds;
 }
예제 #3
0
        public ITracer CreateChildTracer()
        {
            if (MyCallstackItem.IsNull())
            {
                throw new StardustCoreException("Tracer not initialized.");
            }
            var tracer = new Tracer {
                ParentItem = MyCallstackItem, ParentTracer = this
            };

            return(tracer);
        }