Page tree
Skip to end of metadata
Go to start of metadata

Introduced in

Version:19.1.3

Description

Description:

Provides low-level memory profiler functionality in VBS3.

To enable the profiler, start VBS3 with the -memoryProfilingLowLevel command line option (see Command Line and Launcher Options in the VBS3 Administrator Manual), or use the mode parameter with "start".

Syntax

Syntax:

diag_captureMemory mode

Parameters:
  • mode: String - Low-level memory profiling mode. Can be:
    • "start" - Has the same effect as -memoryProfilingLowLevel, attaching to the memory-related system functions. If the profiler starts with -memoryProfilingLowLevel=buffer_size, the last specified value is used (not the default buffer size of 40000 MB).
    • "stop" -  Stops profiling, unattaching from all system functions.
    • "snapshot" - Takes a memory snapshot (a point in time from which you want to analyze memory changes).
    • "dump" - Dumps the allocated memory, since the last snapshot was taken, as a memory tree into a log file (stored as memoryDATE.txt, where DATE is the current date, at the root of the VBS3 installation folder).
    • "dumpMemory" - Dumps all memory allocations, since the first start of the profiler, as a memory tree into a log file (stored as memoryDATE.txt, where DATE is the current date, at the root of the VBS3 installation folder).

Return Value:Nothing

Examples

Examples:
diag_captureMemory "snapshot";

Additional Information

See also:diag_log
Multiplayer:
Problems: