Class MethodProfileDataImpl
java.lang.Object
com.ibm.java.diagnostics.healthcenter.api.profiling.impl.MethodProfileDataImpl
- All Implemented Interfaces:
MethodProfileData
-
Constructor Summary
ConstructorsConstructorDescriptionMethodProfileDataImpl(com.ibm.java.diagnostics.common.datamodel.data.Data data, String methodName, long methodID, double cumulativePercentage, double percentage, long sampleCount) -
Method Summary
Modifier and TypeMethodDescriptionGets an array of methods that this method calls.Gets an array of methods that called this method.longGets the unique method identifier.Gets the name of the method.Gets the time data associated with each time that this method was sampled.longGets the number of times that this method was sampled.doubleGets the proportion of samples that originated from this method.doubleGets the proportion of samples that originated from this method and its descendants.
-
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
Description copied from interface:MethodProfileDataGets the name of the method.- Specified by:
getMethodNamein interfaceMethodProfileData- Returns:
- a String representation of the method signature.
-
getCallingMethods
Description copied from interface:MethodProfileDataGets an array of methods that called this method.- Specified by:
getCallingMethodsin interfaceMethodProfileData- Returns:
- an array of ProfilingNode objects, representing methods that called this method.
-
getStackSamplePercentage
public double getStackSamplePercentage()Description copied from interface:MethodProfileDataGets 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:
getStackSamplePercentagein interfaceMethodProfileData- Returns:
- a percentage weight of this method and its descendants.
-
getMethodId
public long getMethodId()Description copied from interface:MethodProfileDataGets the unique method identifier.- Specified by:
getMethodIdin interfaceMethodProfileData- Returns:
- a numeric identifier for the profiled method.
-
getMethodSamplePercentage
public double getMethodSamplePercentage()Description copied from interface:MethodProfileDataGets 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:
getMethodSamplePercentagein interfaceMethodProfileData- Returns:
- a percentage weight of this method as a total of all methods.
-
getMethodSampleCount
public long getMethodSampleCount()Description copied from interface:MethodProfileDataGets the number of times that this method was sampled. This value indicates how much time was spent running the given method.- Specified by:
getMethodSampleCountin interfaceMethodProfileData- Returns:
- the number of times the method was sampled.
-
getMethodProfileTimes
Description copied from interface:MethodProfileDataGets the time data associated with each time that this method was sampled.- Specified by:
getMethodProfileTimesin interfaceMethodProfileData- Returns:
- an array of times, representing each time that this method was called.
-
getCalledMethods
Description copied from interface:MethodProfileDataGets an array of methods that this method calls.- Specified by:
getCalledMethodsin interfaceMethodProfileData- Returns:
- an array of ProfilingNode objects, representing the methods that were called by this method.
-