Version: 2022.3
public static void ClearCompletedMetrics ();

描述

Clears the metrics for all completed requests, including failed and canceled requests.

You can also clear metrics data when you call GetMetrics or GetCurrentSummaryMetrics by passing in the appropriate AsyncReadManager.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.