Package com.ibm.commons.util.profiler

Examples of com.ibm.commons.util.profiler.ProfilerAggregator


    }
    }
  
   private String extractAuthorizationToken(HttpServletRequest request){
     if (Profiler.isEnabled()) {
              ProfilerAggregator agg = Profiler.startProfileBlock(profilerAcquireToken, "");
              long ts = Profiler.getCurrentTime();
              try {
                  return _extractAuthorizationToken(request);
              } finally {
                  Profiler.endProfileBlock(agg, ts);
View Full Code Here


 
  // Profiled methods
    public final XResult eval(Object node, NamespaceContext namespaceContext) throws XPathException {
        if( Profiler.isEnabled() ) {
            ProfilerAggregator agg = Profiler.startProfileBlock(profilerEval,getExpression());
            long ts = Profiler.getCurrentTime();
            try {
                return doEval(node,namespaceContext);
            } finally {
                Profiler.endProfileBlock(agg,ts);
View Full Code Here

            return doEval(node,namespaceContext);
        }
    }
    public final Object createNodes(Object node, NamespaceContext namespaceContext) throws XPathException {
        if( Profiler.isEnabled() ) {
            ProfilerAggregator agg = Profiler.startProfileBlock(profilerEval,getExpression());
            long ts = Profiler.getCurrentTime();
            try {
                return doCreateNodes(node,namespaceContext);
            } finally {
                Profiler.endProfileBlock(agg,ts);
View Full Code Here

            return doCreateNodes(node,namespaceContext);
        }
    }
    public final void setValue(Object node, Object value, NamespaceContext namespaceContext, boolean autoCreate) throws XPathException {
        if( Profiler.isEnabled() ) {
            ProfilerAggregator agg = Profiler.startProfileBlock(profilerEval,getExpression());
            long ts = Profiler.getCurrentTime();
            try {
                doSetValue(node,value,namespaceContext,autoCreate);
            } finally {
                Profiler.endProfileBlock(agg,ts);
View Full Code Here

   * @throws ClientServicesException
   */
  protected Response execRequest(HttpRequestBase httpRequestBase, Args args, Object content) throws ClientServicesException {
    if (Profiler.isEnabled()) {
      String msg = httpRequestBase.getMethod().toUpperCase() + " " + getUrlPath(args);
      ProfilerAggregator agg = Profiler.startProfileBlock(profilerRequest, msg);
      long ts = Profiler.getCurrentTime();
      try {
        return _xhr(httpRequestBase, args, content);
      } finally {
        Profiler.endProfileBlock(agg, ts);
View Full Code Here

  public void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
    Object timedObject = ProxyProfiler.getTimedObject();
    if (Profiler.isEnabled()) {
      StringBuffer b = request.getRequestURL();
      String url = b.toString();
      ProfilerAggregator agg = Profiler.startProfileBlock(profilerRequest, request.getMethod().toUpperCase() + " " + url);
      long ts = Profiler.getCurrentTime();
      try {
        serviceProxy(request, response);
      } finally {
        Profiler.endProfileBlock(agg, ts);
View Full Code Here

TOP

Related Classes of com.ibm.commons.util.profiler.ProfilerAggregator

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.