PObjectMonitoring Class Reference
Detailed Description
The PObjectMonitoring class represents a singleton used to monitor Papillon Core.
Definition at line 28 of file PObjectMonitoring.h.
#include <PObjectMonitoring.h>
Constructor & Destructor Documentation
◆ PObjectMonitoring()
PObjectMonitoring::PObjectMonitoring | ( | ) |
◆ ~PObjectMonitoring()
PObjectMonitoring::~PObjectMonitoring | ( | ) |
Member Function Documentation
◆ CountInstance()
int32 PObjectMonitoring::CountInstance | ( | classid | classId | ) |
◆ GetClassNameFromClassId()
const char* PObjectMonitoring::GetClassNameFromClassId | ( | classid | classId | ) |
◆ GetInstance()
|
static |
◆ LogObjectCounters()
void PObjectMonitoring::LogObjectCounters | ( | int32 | topN = -1 | ) |
◆ StartMonitoring()
void PObjectMonitoring::StartMonitoring | ( | const PProperties & | parameters | ) |
Starts the background monitoring thread.
This feature is only available if the SDK has been compiled with WITH_CORE_OBJECT_MONITORING.
Examples:
// Display monitoring console and update every 10000 ms (10 seconds)
PObjectMonitoring::GetInstance().StartMonitoring(PProperties::CreateFromKeyValueString("console=true;time=10000"));
// Display monitoring console and update every 30000 ms (30 seconds)
PObjectMonitoring::GetInstance().StartMonitoring(PProperties::CreateFromKeyValueString("csv=monitoringData.csv;time=30000"));
Possible parameters are:
- csv=csv filename
- console=true or false
- time=refresh period in ms (minimum is 125 ms)
◆ StopMonitoring()
void PObjectMonitoring::StopMonitoring | ( | ) |
Friends And Related Function Documentation
◆ PObjectImpl
|
friend |
Definition at line 60 of file PObjectMonitoring.h.
Member Data Documentation
◆ m_data
void* PObjectMonitoring::m_data |
Definition at line 73 of file PObjectMonitoring.h.