GetMaxPerformanceMetricsHistorySize

Gets the duration of the performance monitoring buffer.

Syntax

Copied!

ADLX_RESULT     GetMaxPerformanceMetricsHistorySize (adlx_int* sizeSec)

Parameters

  1. [out] sizeSec adlx_int* The pointer to a variable where the buffer duration (in second) is returned.

Return Value

If the buffer duration is successfully returned, ADLX_OK is returned.

If the buffer duration is not successfully returned, an error code is returned.

Refer to ADLX_RESULT for success codes and error codes.

Remarks

Obtain the buffer duration range with GetMaxPerformanceMetricsHistorySizeRange . The default buffer duration is 100 s. If the monitoring continues longer than the buffer duration, the old performance samples are discarded to give buffer space to the latest samples.

Requirements

Header

include “IPerformanceMonitoring.h”

Minimum version

1.0