public static PerformanceTimerAttribute GetPerformanceTimer(ClassificationDeclaration classificationDeclaration)
        {
            var timer = PerformanceTimerAttribute.StartNew(
                RollbarPerformanceMonitor.Instance,
                PerformanceUtil.GetClassification(classificationDeclaration)
                );

            return(timer);
        }
Пример #2
0
            public static PerformanceTimerAttribute TimeIt(Operation operation, PayloadSize payloadSize)
            {
                IClassification classification = Classification.MatchClassification(operation, payloadSize);

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