Function With the GetIntStat command you can retrieve various internal status information.
Example GetIntStat "processmemory" toText="memory"

The requested information is provided in the specified text variable.

Format GetIntStat "..." toText="textname"

The following information can be retrieved:

"processmemory" The total memory currently allocated by the SAP GUI process in kilobytes (KB), e.g. "109044". The reported value is the “Working Set Size”, which includes both exclusive memory areas of the process and shared memory areas, such as loaded DLL files.

"sessionmemory" The memory in KB used by the current GuiXT session, e.g. "20552".

"cpu" The total pure CPU time consumed so far in the current thread, in microseconds.

Note: The time is calculated from the CPU cycles reported by Windows for the thread. The conversion factor “CPU cycles per second” is computed only once by GuiXT within the SAP GUI process so that measurement intervals remain consistent even when the CPU frequency changes dynamically (turbo mode or power-saving mode).

"callcache" The cache memory used for call results in the current session (separate for cache=session / cache=transaction).

"sessions" All sessions allocated in the current SAP GUI process in which GuiXT is active. One line is generated for each session, identical to the session ID described in External call of an InputScript.

system:'PS4' user:'MSMITH' client:'100' transaction:'VA01' mode:'1' hwnd:'133842' processid:'11000' mysessionname:'CUSTOMERORDER'

"contmem" The largest currently available contiguous free memory block in MB, e.g. "984 MB". In 64‑bit SAP GUI this value can be extremely large (e.g. 129217728 MB), because the 64‑bit address space is 128 TB.

Note: A memory bottleneck in 32‑bit SAP GUI usually occurs due to fragmentation:

  • Address space is only 2048 MB
  • Windows occupies many areas
  • The remaining space may be fragmented so heavily that no sufficiently large block is available
Component GuiXT + Input Assistant