ProcessWatcher Class Reference

The ProcessWatcher class is instantiated once in each armarx::Application an monitors thread, CPU, and memory utilization. More...

#include <ArmarXCore/core/system/ProcessWatcher.h>

Public Member Functions

void addAllChildThreads (int processId, int threadId)
 
void addThread (int processId, int threadId)
 
void addThread (int threadId)
 
armarx::CpuUsage getProcessCpuUsage ()
 
double getThreadLoad (int processId, int threadId)
 
double getThreadLoad (int threadId)
 
 ProcessWatcher (Profiler::ProfilerPtr profiler)
 
void removeAllThreads ()
 
void removeThread (int processId, int threadId)
 
void removeThread (int threadId)
 
void reportCpuUsage ()
 
void reportMemoryUsage ()
 
void start ()
 
void stop ()
 

Static Public Member Functions

static int GetHertz ()
 
static int GetThreadJiffies (int processId, int threadId)
 
static std::map< int, int > GetThreadListJiffies (int processId, std::vector< int > threadIds)
 

Detailed Description

The ProcessWatcher class is instantiated once in each armarx::Application an monitors thread, CPU, and memory utilization.

Constructor & Destructor Documentation

◆ ProcessWatcher()

Member Function Documentation

◆ addAllChildThreads()

void addAllChildThreads ( int processId,
int threadId )

◆ addThread() [1/2]

void addThread ( int processId,
int threadId )

◆ addThread() [2/2]

void addThread ( int threadId)

◆ GetHertz()

int GetHertz ( )
static

◆ getProcessCpuUsage()

armarx::CpuUsage getProcessCpuUsage ( )

◆ GetThreadJiffies()

int GetThreadJiffies ( int processId,
int threadId )
static

◆ GetThreadListJiffies()

std::map< int, int > GetThreadListJiffies ( int processId,
std::vector< int > threadIds )
static

◆ getThreadLoad() [1/2]

double getThreadLoad ( int processId,
int threadId )

◆ getThreadLoad() [2/2]

double getThreadLoad ( int threadId)

◆ removeAllThreads()

void removeAllThreads ( )

◆ removeThread() [1/2]

void removeThread ( int processId,
int threadId )

◆ removeThread() [2/2]

void removeThread ( int threadId)

◆ reportCpuUsage()

void reportCpuUsage ( )

◆ reportMemoryUsage()

void reportMemoryUsage ( )

◆ start()

void start ( )

◆ stop()

void stop ( )

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