public static PerformanceTimerAttribute GetPerformanceTimer(ClassificationDeclaration classificationDeclaration) { var timer = PerformanceTimerAttribute.StartNew( RollbarPerformanceMonitor.Instance, PerformanceUtil.GetClassification(classificationDeclaration) ); return(timer); }
public static PerformanceTimerAttribute TimeIt(Operation operation, PayloadSize payloadSize) { IClassification classification = Classification.MatchClassification(operation, payloadSize); return(PerformanceTimerAttribute.StartNew(PerformanceMonitor.Instance, classification)); }