Class TrackingOptions

java.lang.Object
com.jprofiler.api.controller.TrackingOptions

public class TrackingOptions extends Object
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 Details

    • NONE

      public static final TrackingOptions NONE
    • PLATFORM_THREAD

      public static final TrackingOptions PLATFORM_THREAD
      Only track platform thread start, same as new TrackingOptions().platformThreadStart(true).
    • EXECUTORS

      public static final TrackingOptions EXECUTORS
      Only track executors, same as new TrackingOptions().executors(true).
    • AWT

      public static final TrackingOptions AWT
      Only track AWT, same as new TrackingOptions().awt(true).
    • SWT

      public static final TrackingOptions SWT
      Only track SWT, same as new TrackingOptions().swt(true).
    • RMI

      public static final TrackingOptions RMI
      Only track RMI, same as new TrackingOptions().rmi(true).
    • GRPC

      public static final TrackingOptions GRPC
      Only track gRPC, same as new TrackingOptions().grpc(true).
    • REMOTE_EJB

      public static final TrackingOptions REMOTE_EJB
      Only track remote EJBs, same as new TrackingOptions().remoteEjb(true).
    • HTTP

      public static final TrackingOptions HTTP
      Only track http requests, same as new TrackingOptions().http(true).
    • KOTLIN_COROUTINES

      public static final TrackingOptions KOTLIN_COROUTINES
      Only track kotlin coroutines, same as new TrackingOptions().kotlinCoroutines(true).
    • VIRTUAL_THREAD

      public static final TrackingOptions VIRTUAL_THREAD
      Only track virtual thread start, same as new TrackingOptions().virtualThread(true).
  • Constructor Details

    • TrackingOptions

      public TrackingOptions()
      Create a new instance with no tracking types enabled.
  • Method Details

    • platformThread

      public TrackingOptions platformThread(boolean threadStart)
      Determines if platform thread start should be tracked.
      Parameters:
      threadStart - the new value
      Returns:
      this instance
    • virtualThread

      public TrackingOptions virtualThread(boolean threadStart)
      Determines if virtual 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
    • grpc

      public TrackingOptions grpc(boolean grpc)
      Determines if gRPC should be tracked.
      Parameters:
      grpc - 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
    • 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

      public TrackingOptions freeze()
      Make these tracking options unmodifiable. Further modification attempts will result in a UnsupportedOperationException.
      Returns:
      this instance