Package com.aparapi.internal.kernel
Class KernelProfile
java.lang.Object
com.aparapi.internal.kernel.KernelProfile
public class KernelProfile extends Object
Collects profiling information per kernel class per device.
-
Field Summary
Fields Modifier and Type Field Description static double
MILLION
-
Constructor Summary
Constructors Constructor Description KernelProfile(Class<? extends Kernel> _kernelClass)
-
Method Summary
Modifier and Type Method Description double
getAccumulatedTotalTime()
KernelDeviceProfile
getDeviceProfile(Device device)
Collection<KernelDeviceProfile>
getDeviceProfiles()
Collection<Device>
getDevices()
double
getLastConversionTime()
KernelDeviceProfile
getLastDeviceProfile()
Retrieves the last device profile that was updated by the last thread that made a profiling information update, when executing this kernel on the specified device.double
getLastExecutionTime()
IProfileReportObserver
getReportObserver()
void
setReportObserver(IProfileReportObserver _observer)
-
Field Details
-
MILLION
public static final double MILLION- See Also:
- Constant Field Values
-
-
Constructor Details
-
Method Details
-
getLastExecutionTime
public double getLastExecutionTime() -
getLastConversionTime
public double getLastConversionTime() -
getAccumulatedTotalTime
public double getAccumulatedTotalTime() -
getLastDeviceProfile
Retrieves the last device profile that was updated by the last thread that made a profiling information update, when executing this kernel on the specified device.- Returns:
- the device profile
-
getDevices
-
getDeviceProfiles
-
getDeviceProfile
-
setReportObserver
-
getReportObserver
-