Package com.jprofiler.api.controller
Class TrackingOptions
- java.lang.Object
-
- com.jprofiler.api.controller.TrackingOptions
-
public class TrackingOptions extends java.lang.ObjectRequest tracking options for callingController.startCPURecording(boolean, TrackingOptions)} andController.startAllocRecording(boolean, TrackingOptions). See the help topic on request tracking for more information. After constructing an instance of this class, all request tracking options are set tofalse.
-
-
Field Summary
Fields Modifier and Type Field Description static TrackingOptionsAWTOnly track AWT, same asnew TrackingOptions().awt(true).static TrackingOptionsEXECUTORSOnly track executors, same asnew TrackingOptions().executors(true).static TrackingOptionsHTTPOnly track http requests, same asnew TrackingOptions().http(true).static TrackingOptionsKOTLIN_COROUTINESOnly track kotlin coroutines, same asnew TrackingOptions().kotlinCoroutines(true).static TrackingOptionsNONEThe default value used byController.startCPURecording(boolean)andController.startAllocRecording(boolean, TrackingOptions)static TrackingOptionsREMOTE_EJBOnly track remote EJBs, same asnew TrackingOptions().remoteEjb(true).static TrackingOptionsRMIOnly track RMI, same asnew TrackingOptions().rmi(true).static TrackingOptionsSWTOnly track SWT, same asnew TrackingOptions().swt(true).static TrackingOptionsTHREAD_STARTOnly track thread start, same asnew TrackingOptions().threadStart(true).
-
Constructor Summary
Constructors Constructor Description TrackingOptions()Create a new instance with no tracking types enabled.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TrackingOptionsawt(boolean awt)Determines if AWT should be tracked.TrackingOptionsexecutors(boolean executors)Determines if executors should be tracked.TrackingOptionsfreeze()Make these tracking options unmodifiable.TrackingOptionshttp(boolean http)Determines if http requests should be tracked.booleanisAwt()Returns if AWT is tracked.booleanisExecutors()Returns if executors are tracked.booleanisHttp()Returns if http requests are tracked.booleanisKotlinCoroutines()Returns if kotlin coroutines are tracked.booleanisRemoteEjb()Returns if remote EJBs are tracked.booleanisRmi()Returns if RMI is tracked.booleanisSwt()Returns if SWT is tracked.booleanisThreadStart()Returns if thread start is tracked.TrackingOptionskotlinCoroutines(boolean kotlinCoroutines)Determines if kotlin coroutines should be tracked.TrackingOptionsremoteEjb(boolean remoteEjb)Determines if remote EJBs should be tracked.TrackingOptionsrmi(boolean rmi)Determines if RMI should be tracked.TrackingOptionsswt(boolean swt)Determines if SWT should be tracked.TrackingOptionsthreadStart(boolean threadStart)Determines if thread start should be tracked.
-
-
-
Field Detail
-
NONE
public static final TrackingOptions NONE
The default value used byController.startCPURecording(boolean)andController.startAllocRecording(boolean, TrackingOptions)
-
THREAD_START
public static final TrackingOptions THREAD_START
Only track thread start, same asnew TrackingOptions().threadStart(true).
-
EXECUTORS
public static final TrackingOptions EXECUTORS
Only track executors, same asnew TrackingOptions().executors(true).
-
AWT
public static final TrackingOptions AWT
Only track AWT, same asnew TrackingOptions().awt(true).
-
SWT
public static final TrackingOptions SWT
Only track SWT, same asnew TrackingOptions().swt(true).
-
RMI
public static final TrackingOptions RMI
Only track RMI, same asnew TrackingOptions().rmi(true).
-
REMOTE_EJB
public static final TrackingOptions REMOTE_EJB
Only track remote EJBs, same asnew TrackingOptions().remoteEjb(true).
-
HTTP
public static final TrackingOptions HTTP
Only track http requests, same asnew TrackingOptions().http(true).
-
KOTLIN_COROUTINES
public static final TrackingOptions KOTLIN_COROUTINES
Only track kotlin coroutines, same asnew TrackingOptions().kotlinCoroutines(true).
-
-
Method Detail
-
threadStart
public TrackingOptions threadStart(boolean threadStart)
Determines if thread start should be tracked.- Parameters:
threadStart- the new value- Returns:
- this instance
-
executors
public TrackingOptions executors(boolean executors)
Determines if executors should be tracked.- Parameters:
executors- the new value- Returns:
- this instance
-
awt
public TrackingOptions awt(boolean awt)
Determines if AWT should be tracked.- Parameters:
awt- the new value- Returns:
- this instance
-
swt
public TrackingOptions swt(boolean swt)
Determines if SWT should be tracked.- Parameters:
swt- the new value- Returns:
- this instance
-
rmi
public TrackingOptions rmi(boolean rmi)
Determines if RMI should be tracked.- Parameters:
rmi- the new value- Returns:
- this instance
-
http
public TrackingOptions http(boolean http)
Determines if http requests should be tracked.- Parameters:
http- the new value- Returns:
- this instance
-
remoteEjb
public TrackingOptions remoteEjb(boolean remoteEjb)
Determines if remote EJBs should be tracked.- Parameters:
remoteEjb- the new value- Returns:
- this instance
-
kotlinCoroutines
public TrackingOptions kotlinCoroutines(boolean kotlinCoroutines)
Determines if kotlin coroutines should be tracked.- Parameters:
kotlinCoroutines- the new value- Returns:
- this instance
-
isThreadStart
public boolean isThreadStart()
Returns if thread start is tracked.- Returns:
- the value
-
isExecutors
public boolean isExecutors()
Returns if executors are tracked.- Returns:
- the value
-
isAwt
public boolean isAwt()
Returns if AWT is tracked.- Returns:
- the value
-
isSwt
public boolean isSwt()
Returns if SWT is tracked.- Returns:
- the value
-
isRmi
public boolean isRmi()
Returns if RMI is tracked.- Returns:
- the value
-
isHttp
public boolean isHttp()
Returns if http requests are tracked.- Returns:
- the value
-
isRemoteEjb
public boolean isRemoteEjb()
Returns if remote EJBs are tracked.- Returns:
- the value
-
isKotlinCoroutines
public boolean isKotlinCoroutines()
Returns if kotlin coroutines are tracked.- Returns:
- the value
-
freeze
public TrackingOptions freeze()
Make these tracking options unmodifiable. Further modification attempts will result in aUnsupportedOperationException.- Returns:
- this instance
-
-