Example #1
0
        public override void Mark(string markName)
        {
            var entry = new PerformanceMark(markName);

            lock (entriesLock)
            {
                entries = entries.Add(entry);
            }
        }
Example #2
0
        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));
            }
        }