Class KernelProfile

java.lang.Object
com.aparapi.internal.kernel.KernelProfile

public class KernelProfile extends Object
Collects profiling information per kernel class per device.
  • Field Details

  • Constructor Details

    • KernelProfile

      public KernelProfile(Class<? extends Kernel> _kernelClass)
  • Method Details

    • getLastExecutionTime

      public double getLastExecutionTime()
    • getLastConversionTime

      public double getLastConversionTime()
    • getAccumulatedTotalTime

      public double getAccumulatedTotalTime()
    • getLastDeviceProfile

      public 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.
      Returns:
      the device profile
    • getDevices

      public Collection<Device> getDevices()
    • getDeviceProfiles

      public Collection<KernelDeviceProfile> getDeviceProfiles()
    • getDeviceProfile

      public KernelDeviceProfile getDeviceProfile(Device device)
    • setReportObserver

      public void setReportObserver(IProfileReportObserver _observer)
    • getReportObserver

      public IProfileReportObserver getReportObserver()