congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
Profiler.addIOCall
Code IndexAdd Tabnine to your IDE (free)

How to use
addIOCall
method
in
org.stagemonitor.tracing.profiler.Profiler

Best Java code snippets using org.stagemonitor.tracing.profiler.Profiler.addIOCall (Showing top 4 results out of 315)

origin: stagemonitor/stagemonitor

@Advice.OnMethodEnter(inline = false)
public static void addIOCall(@Advice.Argument(1) ActionRequest actionRequestBuilder) {
  if (actionRequestBuilder instanceof SearchRequest) {
    Profiler.addIOCall(ElasticsearchSearchQueryTransformer.getSearchRequestAsString((SearchRequest) actionRequestBuilder), 0L);
  }
}
origin: stagemonitor/stagemonitor

static void method1_2() {
  Profiler.start("method1_2()");
  Profiler.addIOCall("select * from user", 50000000);
  Profiler.addIOCall("select * from address", 50000000);
  method1_2_1();
  final CallStackElement thisCallStackElement = Profiler.getMethodCallParent();
  Profiler.stop();
  thisCallStackElement.setExecutionTime(500000000);
}
static void method1_2_1() {
origin: stagemonitor/stagemonitor

@Override
public void onAfterAnyExecute(StatementInformation statementInformation, long timeElapsedNanos, SQLException e) {
  final Scope activeScope = tracingPlugin.getTracer().scopeManager().active();
  if (activeScope != null) {
    final Span span = activeScope.span();
    if (statementInformation.getConnectionInformation().getDataSource() instanceof DataSource && jdbcPlugin.isCollectSql()) {
      MetaData metaData = dataSourceUrlMap.get(statementInformation.getConnectionInformation().getDataSource());
      Tags.PEER_SERVICE.set(span, metaData.serviceName);
      span.setTag("db.type", metaData.productName);
      span.setTag("db.user", metaData.userName);
      if (StringUtils.isNotEmpty(statementInformation.getSql())) {
        String sql = getSql(statementInformation.getSql(), statementInformation.getSqlWithValues());
        Profiler.addIOCall(sql, timeElapsedNanos);
        span.setTag(AbstractExternalRequest.EXTERNAL_REQUEST_METHOD, getMethod(sql));
        span.setTag(DB_STATEMENT, sql);
      }
    }
    tracingPlugin.getRequestMonitor().monitorStop();
  }
}
origin: org.stagemonitor/stagemonitor-jdbc

@Override
public void onAfterAnyExecute(StatementInformation statementInformation, long timeElapsedNanos, SQLException e) {
  final Scope activeScope = tracingPlugin.getTracer().scopeManager().active();
  if (activeScope != null) {
    final Span span = activeScope.span();
    if (statementInformation.getConnectionInformation().getDataSource() instanceof DataSource && jdbcPlugin.isCollectSql()) {
      MetaData metaData = dataSourceUrlMap.get(statementInformation.getConnectionInformation().getDataSource());
      Tags.PEER_SERVICE.set(span, metaData.serviceName);
      span.setTag("db.type", metaData.productName);
      span.setTag("db.user", metaData.userName);
      if (StringUtils.isNotEmpty(statementInformation.getSql())) {
        String sql = getSql(statementInformation.getSql(), statementInformation.getSqlWithValues());
        Profiler.addIOCall(sql, timeElapsedNanos);
        span.setTag(AbstractExternalRequest.EXTERNAL_REQUEST_METHOD, getMethod(sql));
        span.setTag(DB_STATEMENT, sql);
      }
    }
    tracingPlugin.getRequestMonitor().monitorStop();
  }
}
org.stagemonitor.tracing.profilerProfileraddIOCall

Popular methods of Profiler

  • stop
  • activateProfiling
    Activates the profiling for the current thread by setting the provided CallStackElement as the root
  • start
  • getMethodCallParent
    Adds the current
  • isProfilingActive
  • addCall
  • clearMethodCallParent
  • deactivateProfiling

Popular in Java

  • Running tasks concurrently on multiple threads
  • findViewById (Activity)
  • scheduleAtFixedRate (Timer)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now