Package com.jprofiler.api.controller
Class TrackingOptions
java.lang.Object
com.jprofiler.api.controller.TrackingOptions
Request tracking options for calling
Controller.startCPURecording(boolean, TrackingOptions)
} and
Controller.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 to false
.-
Field Summary
Modifier and TypeFieldDescriptionstatic final TrackingOptions
Only track AWT, same asnew TrackingOptions().awt(true)
.static final TrackingOptions
Only track executors, same asnew TrackingOptions().executors(true)
.static final TrackingOptions
Only track gRPC, same asnew TrackingOptions().grpc(true)
.static final TrackingOptions
Only track http requests, same asnew TrackingOptions().http(true)
.static final TrackingOptions
Only track kotlin coroutines, same asnew TrackingOptions().kotlinCoroutines(true)
.static final TrackingOptions
The default value used byController.startCPURecording(boolean)
andController.startAllocRecording(boolean, TrackingOptions)
static final TrackingOptions
Only track platform thread start, same asnew TrackingOptions().platformThreadStart(true)
.static final TrackingOptions
Only track remote EJBs, same asnew TrackingOptions().remoteEjb(true)
.static final TrackingOptions
Only track RMI, same asnew TrackingOptions().rmi(true)
.static final TrackingOptions
Only track SWT, same asnew TrackingOptions().swt(true)
.static final TrackingOptions
Only track virtual thread start, same asnew TrackingOptions().virtualThread(true)
. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionawt
(boolean awt) Determines if AWT should be tracked.executors
(boolean executors) Determines if executors should be tracked.freeze()
Make these tracking options unmodifiable.grpc
(boolean grpc) Determines if gRPC should be tracked.http
(boolean http) Determines if http requests should be tracked.boolean
isAwt()
Returns if AWT is tracked.boolean
Returns if executors are tracked.boolean
isGrpc()
Returns if gRPC is tracked.boolean
isHttp()
Returns if http requests are tracked.boolean
Returns if kotlin coroutines are tracked.boolean
Returns if platform thread start is tracked.boolean
Returns if remote EJBs are tracked.boolean
isRmi()
Returns if RMI is tracked.boolean
isSwt()
Returns if SWT is tracked.boolean
Returns if virtual thread start is tracked.kotlinCoroutines
(boolean kotlinCoroutines) Determines if kotlin coroutines should be tracked.platformThread
(boolean threadStart) Determines if platform thread start should be tracked.remoteEjb
(boolean remoteEjb) Determines if remote EJBs should be tracked.rmi
(boolean rmi) Determines if RMI should be tracked.swt
(boolean swt) Determines if SWT should be tracked.virtualThread
(boolean threadStart) Determines if virtual thread start should be tracked.
-
Field Details
-
NONE
The default value used byController.startCPURecording(boolean)
andController.startAllocRecording(boolean, TrackingOptions)
-
PLATFORM_THREAD
Only track platform thread start, same asnew TrackingOptions().platformThreadStart(true)
. -
EXECUTORS
Only track executors, same asnew TrackingOptions().executors(true)
. -
AWT
Only track AWT, same asnew TrackingOptions().awt(true)
. -
SWT
Only track SWT, same asnew TrackingOptions().swt(true)
. -
RMI
Only track RMI, same asnew TrackingOptions().rmi(true)
. -
GRPC
Only track gRPC, same asnew TrackingOptions().grpc(true)
. -
REMOTE_EJB
Only track remote EJBs, same asnew TrackingOptions().remoteEjb(true)
. -
HTTP
Only track http requests, same asnew TrackingOptions().http(true)
. -
KOTLIN_COROUTINES
Only track kotlin coroutines, same asnew TrackingOptions().kotlinCoroutines(true)
. -
VIRTUAL_THREAD
Only track virtual thread start, same asnew TrackingOptions().virtualThread(true)
.
-
-
Constructor Details
-
TrackingOptions
public TrackingOptions()Create a new instance with no tracking types enabled.
-
-
Method Details
-
platformThread
Determines if platform thread start should be tracked.- Parameters:
threadStart
- the new value- Returns:
- this instance
-
virtualThread
Determines if virtual thread start should be tracked.- Parameters:
threadStart
- the new value- Returns:
- this instance
-
executors
Determines if executors should be tracked.- Parameters:
executors
- the new value- Returns:
- this instance
-
awt
Determines if AWT should be tracked.- Parameters:
awt
- the new value- Returns:
- this instance
-
swt
Determines if SWT should be tracked.- Parameters:
swt
- the new value- Returns:
- this instance
-
rmi
Determines if RMI should be tracked.- Parameters:
rmi
- the new value- Returns:
- this instance
-
grpc
Determines if gRPC should be tracked.- Parameters:
grpc
- the new value- Returns:
- this instance
-
http
Determines if http requests should be tracked.- Parameters:
http
- the new value- Returns:
- this instance
-
remoteEjb
Determines if remote EJBs should be tracked.- Parameters:
remoteEjb
- the new value- Returns:
- this instance
-
kotlinCoroutines
Determines if kotlin coroutines should be tracked.- Parameters:
kotlinCoroutines
- the new value- Returns:
- this instance
-
isPlatformThread
public boolean isPlatformThread()Returns if platform thread start is tracked.- Returns:
- the value
-
isVirtualThread
public boolean isVirtualThread()Returns if virtual 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
-
isGrpc
public boolean isGrpc()Returns if gRPC 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
Make these tracking options unmodifiable. Further modification attempts will result in aUnsupportedOperationException
.- Returns:
- this instance
-