Skip to content

SetMaxPerformanceMetricsHistorySize

Navigation: ADLX SDK ReferencesADLX InterfacesPerformance MonitoringIADLXPerformanceMonitoringServices

Syntax

ADLX_RESULT    SetMaxPerformanceMetricsHistorySize (adlx_int sizeSec)

Parameters

#DirectionNameTypeDescription
1.[in]sizeSecadlx_intThe buffer duration (in second).

Return Value

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

If the buffer duration is not successfully set, 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

Headerinclude “IPerformanceMonitoring.h”
Minimum version1.0

See Also: GetMaxPerformanceMetricsHistorySizeRange, ADLX Enums