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