PerformanceHintManager.Session.ReportActualWorkDuration Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
ReportActualWorkDuration(WorkDuration) |
Reports the work duration for the last cycle of work. |
ReportActualWorkDuration(Int64) |
Reports the actual duration for the last cycle of work. |
ReportActualWorkDuration(WorkDuration)
Reports the work duration for the last cycle of work.
[Android.Runtime.Register("reportActualWorkDuration", "(Landroid/os/WorkDuration;)V", "GetReportActualWorkDuration_Landroid_os_WorkDuration_Handler", ApiSince=35)]
public virtual void ReportActualWorkDuration (Android.OS.WorkDuration workDuration);
[<Android.Runtime.Register("reportActualWorkDuration", "(Landroid/os/WorkDuration;)V", "GetReportActualWorkDuration_Landroid_os_WorkDuration_Handler", ApiSince=35)>]
abstract member ReportActualWorkDuration : Android.OS.WorkDuration -> unit
override this.ReportActualWorkDuration : Android.OS.WorkDuration -> unit
Parameters
- workDuration
- WorkDuration
the work duration of each component.
- Attributes
Remarks
Reports the work duration for the last cycle of work.
The system will attempt to adjust the core placement of the threads within the thread group and/or the frequency of the core on which they are run to bring the actual duration close to the target duration.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
ReportActualWorkDuration(Int64)
Reports the actual duration for the last cycle of work.
[Android.Runtime.Register("reportActualWorkDuration", "(J)V", "GetReportActualWorkDuration_JHandler", ApiSince=31)]
public virtual void ReportActualWorkDuration (long actualDurationNanos);
[<Android.Runtime.Register("reportActualWorkDuration", "(J)V", "GetReportActualWorkDuration_JHandler", ApiSince=31)>]
abstract member ReportActualWorkDuration : int64 -> unit
override this.ReportActualWorkDuration : int64 -> unit
Parameters
- actualDurationNanos
- Int64
how long the thread group took to complete its last task in nanoseconds
- Attributes
Remarks
Reports the actual duration for the last cycle of work.
The system will attempt to adjust the core placement of the threads within the thread group and/or the frequency of the core on which they are run to bring the actual duration close to the target duration.
Java documentation for android.os.PerformanceHintManager.Session.reportActualWorkDuration(long)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.