Class LocalState

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

public class LocalState extends Object
  • Field Details

    • thread

      public final Thread thread
    • dumperIncarnation

      public final int dumperIncarnation
    • buffer

      public LocalBuffer buffer
    • sp

      public int sp
    • callInfo

      public CallInfo callInfo
    • shortThreadName

      public final String shortThreadName
    • stackTrace

      public long[] stackTrace
      Contains stack trace of current thread (method ids) paired with time when the method started Basically it is methodId | TimerCache.timerSHL32
    • isSystem

      public boolean isSystem
    • cpuTime

      public long cpuTime
    • waitTime

      public long waitTime
    • memoryUsed

      public long memoryUsed
    • fileRead

      public long fileRead
    • fileWritten

      public long fileWritten
    • netRead

      public long netRead
    • netWritten

      public long netWritten
    • transactions

      public long transactions
    • nextCpuStamp

      public int nextCpuStamp
    • nextWaitStamp

      public int nextWaitStamp
    • nextMemoryStamp

      public int nextMemoryStamp
    • additional

      public Object additional
  • Constructor Details

    • LocalState

      public LocalState()
  • Method Details

    • enter

      public void enter(int methodId)
    • enter

      public void enter(int methodId, long millisecondsPassed)
    • enter

      public void enter(long methodAndTime)
    • exit

      public void exit()
    • event

      public void event(Object value, int id)
    • reserveLargeEventVolume

      public boolean reserveLargeEventVolume(long volume)
      Attempts to reserve a specified volume for large event data collection. If the total thread-local volume exceeds a predefined limit, it tries to borrow from a global counter to accommodate the requested volume.
      Parameters:
      volume - the amount of volume to reserve for large event data
      Returns:
      true if the reservation succeeds (either using thread-local space or borrowing from the global counter), false otherwise
    • markSystem

      public void markSystem()
    • toString

      public String toString()
      Overrides:
      toString in class Object