Oficina Framework  1.3
Games Framework
OficinaFramework::DiagnosticsSystem Class Reference

Controls for monitoring Memory and CPU usage. More...

#include <DiagnosticsSystem.hpp>

Static Public Member Functions

static void init ()
 Initializes the system. More...
 
static bool IsInitialized ()
 Gets if the system was initialized. More...
 
static dword GetTotalVirtualMemory ()
 Gets the total virtual memory. More...
 
static dword GetVirtualMemoryUsed ()
 Gets the total virtual memory used by the machine. More...
 
static dword GetProcessVirtualMemoryUsed ()
 Gets the virtual memory used by the current process. More...
 
static dword GetTotalPhysicalMemory ()
 Gets the total physical memory. More...
 
static dword GetPhysicalMemoryUsed ()
 Gets the total physical memory used by the machine. More...
 
static dword GetProcessPhysicalMemoryUsed ()
 Gets the physical memory used by the current process. More...
 
static double GetCPUUsedPercent ()
 Gets the percentage of CPU usage. More...
 
static double GetProcessCPUUsedPercent ()
 Gets the percentage of CPU usage by process. More...
 

Detailed Description

Controls for monitoring Memory and CPU usage.

Member Function Documentation

◆ GetCPUUsedPercent()

static double OficinaFramework::DiagnosticsSystem::GetCPUUsedPercent ( )
static

Gets the percentage of CPU usage.

Returns
Machine CPU usage in percent.

◆ GetPhysicalMemoryUsed()

static dword OficinaFramework::DiagnosticsSystem::GetPhysicalMemoryUsed ( )
static

Gets the total physical memory used by the machine.

Returns
Size of used physical memory.

◆ GetProcessCPUUsedPercent()

static double OficinaFramework::DiagnosticsSystem::GetProcessCPUUsedPercent ( )
static

Gets the percentage of CPU usage by process.

Returns
Process CPU usage in percent.

◆ GetProcessPhysicalMemoryUsed()

static dword OficinaFramework::DiagnosticsSystem::GetProcessPhysicalMemoryUsed ( )
static

Gets the physical memory used by the current process.

Returns
Size of physical memory used by application.

◆ GetProcessVirtualMemoryUsed()

static dword OficinaFramework::DiagnosticsSystem::GetProcessVirtualMemoryUsed ( )
static

Gets the virtual memory used by the current process.

Returns
Size of virtual memory used by application.

◆ GetTotalPhysicalMemory()

static dword OficinaFramework::DiagnosticsSystem::GetTotalPhysicalMemory ( )
static

Gets the total physical memory.

Returns
Size of the physical memory.

◆ GetTotalVirtualMemory()

static dword OficinaFramework::DiagnosticsSystem::GetTotalVirtualMemory ( )
static

Gets the total virtual memory.

Returns
Size of the virtual memory.

◆ GetVirtualMemoryUsed()

static dword OficinaFramework::DiagnosticsSystem::GetVirtualMemoryUsed ( )
static

Gets the total virtual memory used by the machine.

Returns
Size of used virtual memory.

◆ init()

static void OficinaFramework::DiagnosticsSystem::init ( )
static

Initializes the system.

◆ IsInitialized()

static bool OficinaFramework::DiagnosticsSystem::IsInitialized ( )
static

Gets if the system was initialized.

Returns
Whether it was initialized or not.

The documentation for this class was generated from the following file: