コード例 #1
0
ファイル: RcPerf.java プロジェクト: InverseLina/search
 public void endRequest() {
   if (rootRequestPerfCtx != null) {
     rootRequestPerfCtx.end();
   }
   if (requestMetricsStartContext != null) {
     requestMetricsStartContext.stop();
   }
 }
コード例 #2
0
ファイル: MetricsUtil.java プロジェクト: Mohdrz/Onos
 /**
  * Stops the Metric Timer context.
  *
  * <p>If the given context was null, it will silently be ignored.
  *
  * @param context timing context to stop, if not null.
  */
 public static void stopTimer(Context context) {
   if (context != null) {
     context.stop();
   }
 }