Skip to main content

XMemGetWorkingSetStatistics

Provides details of the exact usage of the memory in a title process.

Syntax

Parameters

WorkingSetFlags   _In_
Type: DWORD
A bitwise-OR combination of flags that represent the partitions included in the usage statistics. Statistics   _Out_
Type: PXMEM_WORKING_SET_STATISTICS
The address of an XMEM_WORKING_SET_STATISTICS structure to receive memory usage information.

Return value

Type: BOOL Returns TRUE if successful; otherwise, returns FALSE. To get extended error information, call GetLastError.

Remarks

This function retrieves statistics about memory utilization, depending on the flags specified in WorkingSetFlags, as an XMEM_WORKING_SET_STATISTICS structure. The structure provides information about the total size & usage of memory configured for the title process. For more information about configuring memory for your title, see Configuring memory for your title and dev kit.

XMemGetWorkingSetStatistics is intended as a diagnostics function and, in general, provides no performance guarentees about the running time required to retrieve the requested data. The only exception to this policy is for XMEM_WORKING_SET_TITLE which is specifically designed to be usable in performance sensitive scenarios.

Requirements

Header: xmem.h Library: xmem.lib Supported platforms: XBOX One family consoles and XBOX Series consoles

See also

Memory
XMEM_WORKING_SET_STATISTICS
XMem
Last modified on August 20, 2026