Examples of CallStackElement


Examples of org.stagemonitor.requestmonitor.profiler.CallStackElement

      AroundProfiler.stop(cse);
    }
  }

  private int method7() {
    CallStackElement cse = AroundProfiler.start("public int ClassToProfile.method7()");
    try {
      return method8();
    } finally {
      AroundProfiler.stop(cse);
    }
View Full Code Here

Examples of org.stagemonitor.requestmonitor.profiler.CallStackElement

      AroundProfiler.stop(cse);
    }
  }

  private int method8() {
    CallStackElement cse = AroundProfiler.start("public int ClassToProfile.method8()");
    try {
      return method9();
    } finally {
      AroundProfiler.stop(cse);
    }
View Full Code Here

Examples of org.stagemonitor.requestmonitor.profiler.CallStackElement

      AroundProfiler.stop(cse);
    }
  }

  private int method9() {
    CallStackElement cse = AroundProfiler.start("public int ClassToProfile.method9()");
    try {
      return 9;
    } finally {
      AroundProfiler.stop(cse);
    }
View Full Code Here

Examples of org.stagemonitor.requestmonitor.profiler.CallStackElement

  private BeforeAfterProfilerTest beforeAfterProfilerTest = new BeforeAfterProfilerTest();

  @Benchmark
  public int aroundProfiler(int iter) {
    int dummy = 0;
    CallStackElement root = null;
    for (int i = 0; i < iter; i++) {
      root = new CallStackElement("root");
      AroundProfiler.setMethodCallRoot(root);
      dummy |= aroundProfilerTest.method1();
      AroundProfiler.stop(root);
    }
    if (!root.getChildren().get(0).getSignature().contains("method1")) {
      throw new IllegalStateException("profiling did not work");
    }
    return dummy;
  }
View Full Code Here

Examples of org.stagemonitor.requestmonitor.profiler.CallStackElement

  }

  @Benchmark
  public int beforeAfterProfiler(int iter) {
    int dummy = 0;
    CallStackElement root = null;
    for (int i = 0; i < iter; i++) {
      root = new CallStackElement("root");
      BeforeAfterProfiler.setMethodCallRoot(root);
      dummy |= beforeAfterProfilerTest.method1();
      BeforeAfterProfiler.stop();
    }
    if (!root.getChildren().get(0).getSignature().contains("method1")) {
      throw new IllegalStateException("profiling did not work");
    }
    return dummy;
  }
View Full Code Here

Examples of org.stagemonitor.requestmonitor.profiler.CallStackElement

        return;
      }
      request.set(info.requestTrace);

      if (info.profileThisExecution()) {
        final CallStackElement root = Profiler.activateProfiling("total");
        info.requestTrace.setCallStack(root);
      }
    } catch (RuntimeException e) {
      logger.warn(e.getMessage() + " (this exception is ignored) " + info.toString(), e);
    }
View Full Code Here

Examples of org.stagemonitor.requestmonitor.profiler.CallStackElement

      }
    }
  }

  private void trackDbMetrics(long elapsed) {
    CallStackElement currentCall = Profiler.getMethodCallParent();
    metricRegistry.timer("db.All.time.statement").update(elapsed, TimeUnit.MILLISECONDS);
    if (currentCall != null) {
      String shortSignature = currentCall.getShortSignature();
      if (shortSignature != null) {
        metricRegistry
            .timer(name("db", shortSignature, "time.statement"))
            .update(elapsed, TimeUnit.MILLISECONDS);
      }
View Full Code Here

Examples of org.stagemonitor.requestmonitor.profiler.CallStackElement

  }

  @Benchmark
  public int manual(int iter) {
    int dummy = 0;
    CallStackElement root = null;
    for (int i = 0; i < iter; i++) {
      root = Profiler.activateProfiling("root");
      dummy |= classManualProfiling.method1();
      Profiler.stop();
    }
View Full Code Here

Examples of org.stagemonitor.requestmonitor.profiler.CallStackElement

    return dummy;
  }
  @Benchmark
  public int javassist(int iter) {
    int dummy = 0;
    CallStackElement root = null;
    for (int i = 0; i < iter; i++) {
      root = Profiler.activateProfiling("root");
      dummy |= classJavassistProfiled.method1();
      Profiler.stop();
    }
View Full Code Here

Examples of org.stagemonitor.requestmonitor.profiler.CallStackElement

  }

  @Benchmark
  public int aspectJ(int iter) {
    int dummy = 0;
    CallStackElement root = null;
    for (int i = 0; i < iter; i++) {
      root = Profiler.activateProfiling("root");
      dummy |= classToProfile.method1();
      Profiler.stop();
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.