Class MethodProfileDataImpl

java.lang.Object
com.ibm.java.diagnostics.healthcenter.api.profiling.impl.MethodProfileDataImpl
All Implemented Interfaces:
MethodProfileData

public class MethodProfileDataImpl extends Object implements MethodProfileData
  • Constructor Details

    • MethodProfileDataImpl

      public MethodProfileDataImpl(com.ibm.java.diagnostics.common.datamodel.data.Data data, String methodName, long methodID, double cumulativePercentage, double percentage, long sampleCount)
  • Method Details

    • getMethodName

      public String getMethodName()
      Description copied from interface: MethodProfileData
      Gets the name of the method.
      Specified by:
      getMethodName in interface MethodProfileData
      Returns:
      a String representation of the method signature.
    • getCallingMethods

      public MethodProfilingNode[] getCallingMethods()
      Description copied from interface: MethodProfileData
      Gets an array of methods that called this method.
      Specified by:
      getCallingMethods in interface MethodProfileData
      Returns:
      an array of ProfilingNode objects, representing methods that called this method.
    • getStackSamplePercentage

      public double getStackSamplePercentage()
      Description copied from interface: MethodProfileData
      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.
      Specified by:
      getStackSamplePercentage in interface MethodProfileData
      Returns:
      a percentage weight of this method and its descendants.
    • getMethodId

      public long getMethodId()
      Description copied from interface: MethodProfileData
      Gets the unique method identifier.
      Specified by:
      getMethodId in interface MethodProfileData
      Returns:
      a numeric identifier for the profiled method.
    • getMethodSamplePercentage

      public double getMethodSamplePercentage()
      Description copied from interface: MethodProfileData
      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.
      Specified by:
      getMethodSamplePercentage in interface MethodProfileData
      Returns:
      a percentage weight of this method as a total of all methods.
    • getMethodSampleCount

      public long getMethodSampleCount()
      Description copied from interface: MethodProfileData
      Gets the number of times that this method was sampled. This value indicates how much time was spent running the given method.
      Specified by:
      getMethodSampleCount in interface MethodProfileData
      Returns:
      the number of times the method was sampled.
    • getMethodProfileTimes

      public MethodProfileTime[] getMethodProfileTimes()
      Description copied from interface: MethodProfileData
      Gets the time data associated with each time that this method was sampled.
      Specified by:
      getMethodProfileTimes in interface MethodProfileData
      Returns:
      an array of times, representing each time that this method was called.
    • getCalledMethods

      public MethodProfilingNode[] getCalledMethods()
      Description copied from interface: MethodProfileData
      Gets an array of methods that this method calls.
      Specified by:
      getCalledMethods in interface MethodProfileData
      Returns:
      an array of ProfilingNode objects, representing the methods that were called by this method.