Package com.custardsource.parfait.timing

Examples of com.custardsource.parfait.timing.EventMetricCollector


    if (!(key instanceof Timeable)) {
      message.getInterceptorChain().doIntercept(message);
      return;
    }

    EventMetricCollector collector = timer.getCollector();
    collector.startTiming((Timeable) key, methodName);
    try {
      message.getInterceptorChain().doIntercept(message);
    } finally {
      collector.stopTiming();
    }
  }
View Full Code Here


  public Object profileMethod(ProceedingJoinPoint pjp) throws Throwable {
    Timeable timeable = map.get(pjp.getTarget());
    if (timeable == null) {
      return pjp.proceed();
    }
    EventMetricCollector collector = timer.getCollector();
    try {
      collector.startTiming(timeable, pjp.getSignature().getName());
      return pjp.proceed();
    } finally {
      collector.stopTiming();
    }
  }
View Full Code Here

TOP

Related Classes of com.custardsource.parfait.timing.EventMetricCollector

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.