ClearCompletedMetrics()
Clears the metrics for all completed requests, including failed and canceled requests.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前
Definition
- Type: Method
- Namespace: Unity.IO.LowLevel.Unsafe
- Assembly: UnityEngine.CoreModule
public static void ClearCompletedMetrics()
Remarks
You can also clear metrics data when you call AsyncReadManagerMetrics.GetMetrics or AsyncReadManagerMetrics.GetCurrentSummaryMetrics by passing in the appropriate Flags. Consider how and when you clear metrics data. You want to avoid collecting duplicate metrics records, but you also want to avoid deleting data you haven’t accessed yet. Avoid calling this function from more than one place in your application. For example, if you had two classes attempting to measure these metrics independently, clearing the data in one class would interfere with the other since all the metrics for completed read requests are removed.