public interface IProfileReportObserver
Modifier and Type | Method and Description |
---|---|
void |
receiveReport(java.lang.Class<? extends Kernel> kernelClass,
Device device,
java.lang.ref.WeakReference<ProfileReport> profileInfo)
The listener method will be invoked each time a profile report becomes available for each Aparapi Kernel which has
a registered observer.
Note1: A report will be generated by a thread executing a kernel. |
void receiveReport(java.lang.Class<? extends Kernel> kernelClass, Device device, java.lang.ref.WeakReference<ProfileReport> profileInfo)
ProfileReport
, it is necessary to clone
the profileInfo object with ProfileReport.clone()
. A WeakReference is used to help differentiate such
need, however it is guaranteed that profileInfo will not be null, during the method execution.
kernelClass
- the class of the kernel to which the profile report pertainsdevice
- the device on which the kernel ran, producing the profile reportprofileInfo
- the profile report for the given Aparapi kernel and device pair