public class ProfilerConfiguration extends Object
ProfilerStrategy| Constructor and Description |
|---|
ProfilerConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
Ticker |
enableForThread() |
int |
getMaxFrameNameLength() |
int |
getMaxFramesPerTrace() |
long |
getMinFrameTime(TimeUnit timeUnit) |
long |
getMinTraceTime(TimeUnit timeUnit) |
boolean |
isEnabled() |
boolean |
isMemoryProfilingEnabled() |
void |
setEnabled(boolean value) |
void |
setMaxFrameNameLength(int value) |
void |
setMaxFramesPerTrace(int value) |
void |
setMemoryProfilingEnabled(boolean value) |
void |
setMinFrameTime(long value,
TimeUnit timeUnit) |
void |
setMinTraceTime(long value,
TimeUnit timeUnit) |
@Nonnull public Ticker enableForThread()
public int getMaxFramesPerTrace()
public int getMaxFrameNameLength()
public long getMinFrameTime(@Nonnull TimeUnit timeUnit)
timeUnit - the requested time unitpublic long getMinTraceTime(@Nonnull TimeUnit timeUnit)
timeUnit - the requested time unitpublic boolean isEnabled()
public boolean isMemoryProfilingEnabled()
public void setEnabled(boolean value)
value - whether profiling should be enabledpublic void setMaxFramesPerTrace(int value)
value - the maximum number of frames to include in a profiling tracepublic void setMaxFrameNameLength(int value)
value - the maximum number of characters in a profiling frame name. Longer names will be truncated.public void setMemoryProfilingEnabled(boolean value)
value - whether profiling should include memory usagepublic void setMinFrameTime(long value,
@Nonnull
TimeUnit timeUnit)
value - the minimum time a profiling trace should take. Traces that take less than this amount of time will
be pruned from profiling output.timeUnit - the time unit of valueCopyright © 2019 Atlassian. All rights reserved.