congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
MakeStack
Code IndexAdd Tabnine to your IDE (free)

How to use
MakeStack
in
scouter.agent.counter.task

Best Java code snippets using scouter.agent.counter.task.MakeStack (Showing top 3 results out of 315)

origin: scouter-project/scouter

@Counter
public void make(CounterBasket pw) {
  if (isPStackEnabled()== false){
    ToolsMainFactory.activeStack=false;
    return;
  }
  long now = System.currentTimeMillis();
  if (now < lastStackTime + getSFAInterval())
    return;
  lastStackTime = now;
  StringWriter sw = new StringWriter();
  PrintWriter out = new PrintWriter(sw);
  try {
    ToolsMainFactory.threadDump(out);
  } catch (Throwable e) {
  } finally {
    out.close();
  }
  String stack = sw.getBuffer().toString();
  StackPack p = new StackPack();
  p.time = System.currentTimeMillis();
  p.objHash = conf.getObjHash();
  p.setStack(stack);
  DataProxy.sendDirect(p);
  long elapsed = (System.currentTimeMillis() - now);
  Logger.trace("[SFA Counter Elasped]" + elapsed);
}

origin: scouter-project/scouter

@Counter
public void make(CounterBasket pw) {
  if (isPStackEnabled()== false){
    ToolsMainFactory.activeStack=false;
    return;
  }
  long now = System.currentTimeMillis();
  if (now < lastStackTime + getSFAInterval())
    return;
  lastStackTime = now;
  StringWriter sw = new StringWriter();
  PrintWriter out = new PrintWriter(sw);
  try {
    ToolsMainFactory.threadDump(out);
  } catch (Throwable e) {
  } finally {
    out.close();
  }
  String stack = sw.getBuffer().toString();
  StackPack p = new StackPack();
  p.time = System.currentTimeMillis();
  p.objHash = conf.getObjHash();
  p.setStack(stack);
  DataProxy.sendDirect(p);
  long elapsed = (System.currentTimeMillis() - now);
  Logger.trace("[SFA Counter Elasped]" + elapsed);
}

origin: io.github.scouter-project/scouter-agent-java

@Counter
public void make(CounterBasket pw) {
  if (isPStackEnabled()== false){
    ToolsMainFactory.activeStack=false;
    return;
  }
  long now = System.currentTimeMillis();
  if (now < lastStackTime + getSFAInterval())
    return;
  lastStackTime = now;
  StringWriter sw = new StringWriter();
  PrintWriter out = new PrintWriter(sw);
  try {
    ToolsMainFactory.threadDump(out);
  } catch (Throwable e) {
  } finally {
    out.close();
  }
  String stack = sw.getBuffer().toString();
  StackPack p = new StackPack();
  p.time = System.currentTimeMillis();
  p.objHash = conf.getObjHash();
  p.setStack(stack);
  DataProxy.sendDirect(p);
  long elapsed = (System.currentTimeMillis() - now);
  Logger.trace("[SFA Counter Elasped]" + elapsed);
}

scouter.agent.counter.taskMakeStack

Most used methods

  • getSFAInterval
  • isPStackEnabled

Popular in Java

  • Reactive rest calls using spring rest template
  • getSharedPreferences (Context)
  • requestLocationUpdates (LocationManager)
  • putExtra (Intent)
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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