public class Profile extends java.lang.Object implements IProfile
| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_ENCODED_BYTES
Collector has a 1000000 byte limit on the Content-Length in the HttpServletRequest
|
static int |
MAX_ENCODED_DATA_BYTES
The maximum size of the JSON payload itself (excluding data) is 114 bytes (4 Longs + 4 Integers +
Transaction GUID).
|
static int |
MAX_STACK_DEPTH |
static int |
MAX_STACK_SIZE |
static int |
STACK_TRIM
The amount to trim a stack size by if as long as its encoded size is greater than MAX_ENCODED_BYTES.
|
AGENT_THREAD_NAMES_KEY, CLASSES_KEY, INSTRUMENTATION_KEY, METHODS_KEY, PROFILE_ARGUMENTS_KEY, STRING_MAP_KEY, THREADS_KEY, VERSION_KEY| Constructor and Description |
|---|
Profile(ProfilerParameters parameters,
java.lang.String sessionId,
ThreadNameNormalizer threadNameNormalizer) |
| Modifier and Type | Method and Description |
|---|---|
void |
addStackTrace(java.lang.management.ThreadInfo threadInfo,
boolean runnable,
ThreadType type)
Subclasses may override.
|
void |
beforeSampling() |
void |
end()
Subclasses may override.
|
long |
getEndTimeMillis() |
ProfiledMethodFactory |
getProfiledMethodFactory() |
java.lang.Long |
getProfileId() |
ProfilerParameters |
getProfilerParameters() |
ProfileTree |
getProfileTree(java.lang.String normalizedThreadName) |
int |
getSampleCount() |
long |
getStartTimeMillis() |
StringMap |
getStringMap() |
java.util.Set<java.lang.Long> |
getThreadIds() |
TransactionProfileSession |
getTransactionProfileSession() |
void |
markInstrumentedMethods()
Use the loaded classes to mark all of the
ProfiledMethods which are instrumented using our method
annotations. |
void |
start()
Subclasses may override.
|
int |
trimBy(int limit)
For testing.
|
void |
writeJSONString(java.io.Writer out) |
public static final int MAX_STACK_DEPTH
public static final int MAX_STACK_SIZE
public static final int MAX_ENCODED_BYTES
public static final int MAX_ENCODED_DATA_BYTES
public static final int STACK_TRIM
public Profile(ProfilerParameters parameters, java.lang.String sessionId, ThreadNameNormalizer threadNameNormalizer)
public ProfileTree getProfileTree(java.lang.String normalizedThreadName)
getProfileTree in interface IProfilepublic java.util.Set<java.lang.Long> getThreadIds()
getThreadIds in interface IProfilepublic void markInstrumentedMethods()
ProfiledMethods which are instrumented using our method
annotations.markInstrumentedMethods in interface IProfileInstrumentedClass,
InstrumentedMethodpublic StringMap getStringMap()
getStringMap in interface IProfilepublic ProfiledMethodFactory getProfiledMethodFactory()
getProfiledMethodFactory in interface IProfilepublic java.lang.Long getProfileId()
getProfileId in interface IProfilepublic ProfilerParameters getProfilerParameters()
getProfilerParameters in interface IProfilepublic void beforeSampling()
beforeSampling in interface IProfilepublic int getSampleCount()
getSampleCount in interface IProfilepublic final long getStartTimeMillis()
getStartTimeMillis in interface IProfilepublic final long getEndTimeMillis()
getEndTimeMillis in interface IProfilepublic void writeJSONString(java.io.Writer out)
throws java.io.IOException
writeJSONString in interface org.json.simple.JSONStreamAwarejava.io.IOExceptionpublic void addStackTrace(java.lang.management.ThreadInfo threadInfo,
boolean runnable,
ThreadType type)
addStackTrace in interface IProfilepublic TransactionProfileSession getTransactionProfileSession()
getTransactionProfileSession in interface IProfile