RTAB-Map 0.23.10
Real-Time Appearance-Based Mapping
Loading...
Searching...
No Matches
UProcessInfo Class Reference

Class for getting information about the current process. More...

#include <UProcessInfo.h>

Public Member Functions

 UProcessInfo ()
 Constructor.
 
virtual ~UProcessInfo ()
 Virtual destructor.
 

Static Public Member Functions

static long int getMemoryUsage ()
 Get the memory used by the current process.
 

Detailed Description

Class for getting information about the current process.

This class provides static methods to retrieve information about the current process, such as memory usage. The information is retrieved from the operating system.

Example:

long int memory = UProcessInfo::getMemoryUsage();
std::cout << "Memory usage: " << memory << " bytes" << std::endl;
static long int getMemoryUsage()
Get the memory used by the current process.

Definition at line 47 of file UProcessInfo.h.

Member Function Documentation

◆ getMemoryUsage()

static long int UProcessInfo::getMemoryUsage ( )
static

Get the memory used by the current process.

This method returns the amount of memory currently used by the process. The exact meaning of "memory used" may vary between operating systems.

Returns
the number of bytes used by the current process, or -1 on error

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