Ejemplo n.º 1
0
        public static PerformanceTimer GetPerformanceTimer(ClassificationDeclaration classificationDeclaration)
        {
            PerformanceTimer timer = PerformanceTimer.StartNew(
                RollbarPerformanceMonitor.Instance,
                PerformanceUtil.GetClassification(classificationDeclaration)
                );

            return(timer);
        }
Ejemplo n.º 2
0
            public static PerformanceTimer TimeIt(Operation operation, PayloadSize payloadSize)
            {
                IClassification classification = Classification.MatchClassification(operation, payloadSize);

                return(PerformanceTimer.StartNew(PerformanceMonitor.Instance, classification));
            }