PowerDistribution

Gets the distribution of power between CPU and GPU of a system metric sample.

Syntax

Copied!

ADLX_RESULT     PowerDistribution (adlx_int* apuShiftValue, adlx_int* gpuShiftValue, adlx_int* apuShiftLimit, adlx_int* gpuShiftLimit, adlx_int* totalShiftLimit)

Parameters

  1. [out] apuShiftValue adlx_int* The pointer to a variable where the apu shift alue value is returned.

  1. [out] gpuShiftValue adlx_int* The pointer to a variable where the gpu shift value is returned.

  1. [out] apuShiftLimit adlx_int* The pointer to a variable where the apu shift limit value is returned.

  1. [out] gpuShiftLimit adlx_int* The pointer to a variable where the gpu shift limit value is returned.

  1. [out] totalShiftLimit adlx_int* The pointer to a variable where the total shift limit value is returned.

Return Value

If the distribution of power is successfully returned, ADLX_OK is returned.

If the distribution of power is not successfully returned, an error code is returned.

Refer to ADLX_RESULT for success codes and error codes.

Requirements

Header

include “IPerformanceMonitoring1.h”

Minimum version

1.2