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.

Definition at line 96 of file ProcessWatcher.h.

Constructor & Destructor Documentation

◆ ProcessWatcher()

Definition at line 53 of file ProcessWatcher.cpp.

+ Here is the call graph for this function:

Member Function Documentation

◆ addAllChildThreads()

void addAllChildThreads ( int  processId,
int  threadId 
)

◆ addThread() [1/2]

void addThread ( int  processId,
int  threadId 
)

Definition at line 81 of file ProcessWatcher.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ addThread() [2/2]

void addThread ( int  threadId)

Definition at line 94 of file ProcessWatcher.cpp.

+ Here is the call graph for this function:

◆ GetHertz()

int GetHertz ( )
static

Definition at line 142 of file ProcessWatcher.cpp.

+ Here is the call graph for this function:

◆ getProcessCpuUsage()

armarx::CpuUsage getProcessCpuUsage ( )

Definition at line 393 of file ProcessWatcher.cpp.

◆ GetThreadJiffies()

int GetThreadJiffies ( int  processId,
int  threadId 
)
static

Definition at line 340 of file ProcessWatcher.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetThreadListJiffies()

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

Definition at line 255 of file ProcessWatcher.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getThreadLoad() [1/2]

double getThreadLoad ( int  processId,
int  threadId 
)

Definition at line 373 of file ProcessWatcher.cpp.

+ Here is the caller graph for this function:

◆ getThreadLoad() [2/2]

double getThreadLoad ( int  threadId)

Definition at line 367 of file ProcessWatcher.cpp.

+ Here is the call graph for this function:

◆ removeAllThreads()

void removeAllThreads ( )

◆ removeThread() [1/2]

void removeThread ( int  processId,
int  threadId 
)

Definition at line 400 of file ProcessWatcher.cpp.

+ Here is the caller graph for this function:

◆ removeThread() [2/2]

void removeThread ( int  threadId)

Definition at line 410 of file ProcessWatcher.cpp.

+ Here is the call graph for this function:

◆ reportCpuUsage()

void reportCpuUsage ( )

Definition at line 355 of file ProcessWatcher.cpp.

◆ reportMemoryUsage()

void reportMemoryUsage ( )

Definition at line 361 of file ProcessWatcher.cpp.

◆ start()

void start ( )

Definition at line 65 of file ProcessWatcher.cpp.

◆ stop()

void stop ( )

Definition at line 75 of file ProcessWatcher.cpp.


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