Interface MethodProfileData

All Known Implementing Classes:
MethodProfileDataImpl

public interface MethodProfileData
This class represents profiling data for a specific method.
  • Method Details

    • getMethodId

      long getMethodId()
      Gets the unique method identifier.
      Returns:
      a numeric identifier for the profiled method.
    • getCallingMethods

      MethodProfilingNode[] getCallingMethods()
      Gets an array of methods that called this method.
      Returns:
      an array of ProfilingNode objects, representing methods that called this method.
    • getCalledMethods

      MethodProfilingNode[] getCalledMethods()
      Gets an array of methods that this method calls.
      Returns:
      an array of ProfilingNode objects, representing the methods that were called by this method.
    • getMethodName

      String getMethodName()
      Gets the name of the method.
      Returns:
      a String representation of the method signature.
    • getMethodSampleCount

      long getMethodSampleCount()
      Gets the number of times that this method was sampled. This value indicates how much time was spent running the given method.
      Returns:
      the number of times the method was sampled.
    • getMethodSamplePercentage

      double getMethodSamplePercentage()
      Gets the proportion of samples that originated from this method. This value indicates the relative hotness of this method compared to other methods. No account is taken of how much of the CPU is being used, so a method with a low sample count and a high percentage might not actually be consuming very many system resources.
      Returns:
      a percentage weight of this method as a total of all methods.
    • getStackSamplePercentage

      double getStackSamplePercentage()
      Gets the proportion of samples that originated from this method and its descendants. This value indicates the hotness of this method and its descendants. No account is taken of how much of the CPU is being used, so a method with a low sample count and a high percentage might not actually be consuming very many system resources.
      Returns:
      a percentage weight of this method and its descendants.
    • getMethodProfileTimes

      MethodProfileTime[] getMethodProfileTimes()
      Gets the time data associated with each time that this method was sampled.
      Returns:
      an array of times, representing each time that this method was called.