public override void Mark(string markName) { var entry = new PerformanceMark(markName); lock (entriesLock) { entries = entries.Add(entry); } }
public override void Measure(string measureName, string startMark) { var currentMark = new PerformanceMark(Guid.NewGuid().ToString()); lock (entries) { entries = entries.Add(new PerformanceMeasure( measureName, startMark, currentMark, entries)); } }