Exemplo n.º 1
0
 public void endRequest() {
   if (rootRequestPerfCtx != null) {
     rootRequestPerfCtx.end();
   }
   if (requestMetricsStartContext != null) {
     requestMetricsStartContext.stop();
   }
 }
Exemplo n.º 2
0
 /**
  * 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();
   }
 }