Ejemplo n.º 1
0
        public override void Mark(string markName)
        {
            var entry = new PerformanceMark(markName);

            lock (entriesLock)
            {
                entries = entries.Add(entry);
            }
        }
Ejemplo n.º 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));
            }
        }