Beispiel #1
0
        public static PerformancePoint Start(string name)
        {
            var perfPoint = new PerformancePoint {
                Name = name
            };

            perfPoint.StartTimer();
            return(perfPoint);
        }
Beispiel #2
0
        public void LogBegin(string name)
        {
            PerformancePoint point = new PerformancePoint();

            point.Name = name;
            point.StartTimer();

            // Violate bracing rules for coverage
            if (_currentLogs.ContainsKey(name))
            {
                throw KrakenException.Create("Attempt to LogBegin('{0}') when there is already one in progress. Use RequireExplicitLogEnd=false if you are lazy.", name);
            }


            SequentialModeCleanup();

            _currentLogs.Add(name, point);
            _mostRecentLogName = name;
        }