Class ProfilerData

java.lang.Object
com.netcracker.profiler.agent.ProfilerData

public class ProfilerData extends Object
  • Field Details

    • INITIAL_BUFFERS

      public static final int INITIAL_BUFFERS
    • MIN_BUFFERS

      public static final int MIN_BUFFERS
    • EVENT_HEAP_THRESHOLD_BYTES

      public static final long EVENT_HEAP_THRESHOLD_BYTES
      Defines the threshold (in bytes) for the total amount of heap used by the active events to prevent OutOfMemoryError. Once the active events exceed this threshold, the new ones will be truncated. Defaults to min(2G, maxMemory()/4)
    • LARGE_EVENT_THRESHOLD

      public static final int LARGE_EVENT_THRESHOLD
      Defines the length of a event that is considered large enough to account with LARGE_EVENT_TLAB_BYTES and EVENT_HEAP_THRESHOLD_BYTES. Small events will process faster as they won't require counter-bumps, however, the drawback is they would consume heap without being accounted for. Defaults to 8KiB.
    • LARGE_EVENT_TLAB_BYTES

      public static final int LARGE_EVENT_TLAB_BYTES
      Defines the size of a thread-local buffer for accounting the large event volume. Per-thread buffers reduce contention on the global counter as each thread tracks its own allocations, and it consults the global counter only if the thread-local counter reaches a threshold. Increasing the value might decrease contention EVENT_HEAP_THRESHOLD_BYTES at a cost of increasing per-thread heap consumption. Defaults to 256KiB.
    • TRUNCATED_EVENTS_THRESHOLD

      public static final int TRUNCATED_EVENTS_THRESHOLD
      Defines the number of characters kept from large events if EVENT_HEAP_THRESHOLD_BYTES is reached. Defaults to 4000
    • MAX_SCALE_ATTEMPTS

      public static final int MAX_SCALE_ATTEMPTS
    • DATA_SENDER_QUEUE_SIZE

      public static final int DATA_SENDER_QUEUE_SIZE
    • METRICS_OUTPUT_VERSION

      public static final int METRICS_OUTPUT_VERSION
    • INMEMORY_SUSPEND_LOG_SIZE

      public static final int INMEMORY_SUSPEND_LOG_SIZE
    • INMEMORY_SUSPEND_LOG

      public static final boolean INMEMORY_SUSPEND_LOG
    • THREAD_CPU

      public static final boolean THREAD_CPU
    • THREAD_WAIT

      public static final boolean THREAD_WAIT
    • THREAD_MEMORY

      public static final boolean THREAD_MEMORY
    • THREAD_CPU_MINIMAL_CALL_DURATION

      public static final int THREAD_CPU_MINIMAL_CALL_DURATION
    • THREAD_WAIT_MINIMAL_CALL_DURATION

      public static final int THREAD_WAIT_MINIMAL_CALL_DURATION
    • THREAD_MEMORY_MINIMAL_CALL_DURATION

      public static final int THREAD_MEMORY_MINIMAL_CALL_DURATION
    • MINIMAL_LOGGED_DURATION

      public static final int MINIMAL_LOGGED_DURATION
    • INITIAL_STACK_LENGTH

      public static final int INITIAL_STACK_LENGTH
    • MAX_STACK_LENGTH

      public static final int MAX_STACK_LENGTH
    • MAX_BUFFERS

      public static final int MAX_BUFFERS
    • BLOCK_WHEN_DIRTY_BUFFERS_QUEUE_IS_FULL

      public static final boolean BLOCK_WHEN_DIRTY_BUFFERS_QUEUE_IS_FULL
    • PARAMS_TRIM_SIZE

      public static final int PARAMS_TRIM_SIZE
    • LOG_ORACLE_SID_FOR_EACH_SQL

      public static final boolean LOG_ORACLE_SID_FOR_EACH_SQL
    • LOG_JMS_TEXT

      public static final boolean LOG_JMS_TEXT
    • ADD_TRY_CATCH_BLOCKS

      public static final boolean ADD_TRY_CATCH_BLOCKS
    • ADD_PLAIN_TRY_CATCH_BLOCKS

      public static final boolean ADD_PLAIN_TRY_CATCH_BLOCKS
    • ADD_INDY_TRY_CATCH_BLOCKS

      public static final boolean ADD_INDY_TRY_CATCH_BLOCKS
    • DISABLE_CALL_EXPORT

      public static final boolean DISABLE_CALL_EXPORT
    • WRITE_CALL_RANGES

      public static final boolean WRITE_CALL_RANGES
    • WRITE_CALLS_DICTIONARY

      public static final boolean WRITE_CALLS_DICTIONARY
    • SERVER_NAME

      public static final String SERVER_NAME
    • localState

      public static final ThreadLocal<LocalState> localState
    • activeThreads

      public static final ConcurrentMap<Thread,LocalState> activeThreads
    • largeEventsVolume

      public static final AtomicLong largeEventsVolume
    • dirtyBuffers

      public static final BlockingQueue<LocalBuffer> dirtyBuffers
    • emptyBuffers

      public static final BlockingQueue<LocalBuffer> emptyBuffers
    • PARAM_CALL_INFO

      public static final int PARAM_CALL_INFO
    • PARAM_CALL_RED

      public static final int PARAM_CALL_RED
    • PARAM_CALL_IDLE

      public static final int PARAM_CALL_IDLE
    • PARAM_EXCEPTION

      public static final int PARAM_EXCEPTION
    • PARAM_PLUGIN_EXCEPTION

      public static final int PARAM_PLUGIN_EXCEPTION
    • PARAM_SQL

      public static final int PARAM_SQL
    • PARAM_ORACLE_SID

      public static final int PARAM_ORACLE_SID
    • dumperDead

      public static boolean dumperDead
    • warnBufferQueueOverflow

      public static boolean warnBufferQueueOverflow
    • dumperIncarnation

      public static int dumperIncarnation
    • pluginLogger

      public static ProfilerPluginLogger pluginLogger
    • properties

      public static volatile Map<String,ProfilerProperty> properties
  • Constructor Details

    • ProfilerData

      public ProfilerData()
  • Method Details

    • resolveTag

      public static int resolveTag(String tag)
    • resolveMethodId

      public static String resolveMethodId(int methodId)
    • getTags

      public static List<String> getTags()
    • reserveLargeEventVolume

      public static boolean reserveLargeEventVolume(long volume)
      Reserves a given number of bytes from the global counter.
      Parameters:
      volume - the number of bytes to reserve from a global pool
      Returns:
      true if the reserve succeeds, false otherwise
    • addDirtyBuffer

      public static boolean addDirtyBuffer(LocalBuffer buffer, boolean force)
    • addDirtyBufferIfPossible

      public static void addDirtyBufferIfPossible(LocalBuffer buffer)
    • getEmptyBuffer

      public static LocalBuffer getEmptyBuffer(LocalState state)
    • clearThreadsInfo

      public static void clearThreadsInfo()