public class ThreadMetrics extends Object
| Constructor and Description |
|---|
ThreadMetrics(ApmAgentContext apmAgentContext,
Thread thread) |
| Modifier and Type | Method and Description |
|---|---|
void |
calculateMethodMetrics() |
void |
destroy() |
void |
enter(String methodName,
boolean alwaysActive) |
long |
exit(String methodName,
boolean alwaysActive) |
long |
getCpuTime() |
String |
getName() |
ThreadInfo |
getThreadInfo() |
long |
getUserTime() |
boolean |
isActive(String methodName) |
boolean |
isDead() |
ThreadContextMethodMetrics |
remove(String fullMethodName) |
void |
setActive(String methodName,
boolean flag) |
void |
setMonitorSize(int monitorSize) |
String |
toString() |
public ThreadMetrics(ApmAgentContext apmAgentContext, Thread thread)
public String getName()
public boolean isDead()
public long getCpuTime()
public long getUserTime()
public ThreadInfo getThreadInfo()
public void setMonitorSize(int monitorSize)
public void enter(String methodName, boolean alwaysActive)
public long exit(String methodName, boolean alwaysActive)
public void destroy()
public ThreadContextMethodMetrics remove(String fullMethodName)
public void calculateMethodMetrics()
public void setActive(String methodName, boolean flag)
public boolean isActive(String methodName)
Copyright © 2011–2015 Red Hat. All rights reserved.