public class KeyTransactionProfile extends java.lang.Object implements IProfile, ExtendedTransactionListener, org.json.simple.JSONStreamAware
| Constructor and Description |
|---|
KeyTransactionProfile(Profile profile) |
| Modifier and Type | Method and Description |
|---|---|
void |
addStackTrace(long threadId,
boolean runnable,
ThreadType type,
java.lang.StackTraceElement... stackTrace) |
void |
beforeSampling() |
void |
dispatcherTransactionCancelled(Transaction transaction)
The transaction on the current thread is being cancelled, either because of a serious internal error or because
the activity on the current thread is now linked to another transaction and this transaction should not report.
|
void |
dispatcherTransactionFinished(TransactionData td,
TransactionStats stats)
This usually runs on the request thread, but for transactions that end because of a token timing out, it can be
called from an arbitrary thread that happens to run the onRemoval listener in TimedTokenSet.
|
void |
dispatcherTransactionStarted(Transaction transaction)
Called after a dispatcher transaction is started on the request thread.
|
void |
end() |
long |
getEndTimeMillis() |
java.lang.Long |
getProfileId() |
ProfilerParameters |
getProfilerParameters() |
ProfileTree |
getProfileTree(ThreadType threadType) |
int |
getSampleCount() |
long |
getStartTimeMillis() |
void |
markInstrumentedMethods()
Key transactions profiles should not mark instrumented methods.
|
void |
start() |
int |
trimBy(int count) |
void |
writeJSONString(java.io.Writer out) |
public KeyTransactionProfile(Profile profile)
public ProfilerParameters getProfilerParameters()
getProfilerParameters in interface IProfilepublic int getSampleCount()
getSampleCount in interface IProfilepublic java.lang.Long getProfileId()
getProfileId in interface IProfilepublic ProfileTree getProfileTree(ThreadType threadType)
getProfileTree in interface IProfilepublic void writeJSONString(java.io.Writer out)
throws java.io.IOException
writeJSONString in interface org.json.simple.JSONStreamAwarejava.io.IOExceptionpublic long getStartTimeMillis()
getStartTimeMillis in interface IProfilepublic long getEndTimeMillis()
getEndTimeMillis in interface IProfilepublic void dispatcherTransactionStarted(Transaction transaction)
ExtendedTransactionListenerdispatcherTransactionStarted in interface ExtendedTransactionListenertransaction - The transaction that was just startedpublic void dispatcherTransactionFinished(TransactionData td, TransactionStats stats)
dispatcherTransactionFinished in interface TransactionListenertd - the final data from the transactionstats - the final metric information from the transactionpublic void dispatcherTransactionCancelled(Transaction transaction)
ExtendedTransactionListenerdispatcherTransactionCancelled in interface ExtendedTransactionListenertransaction - the transaction that is completing abruptly.public void beforeSampling()
beforeSampling in interface IProfilepublic void addStackTrace(long threadId,
boolean runnable,
ThreadType type,
java.lang.StackTraceElement... stackTrace)
addStackTrace in interface IProfilepublic void markInstrumentedMethods()
markInstrumentedMethods in interface IProfile