PIIntrospection

This commit is contained in:
2022-04-14 17:48:15 +03:00
parent fa93c8a486
commit 42e253adc7
3 changed files with 12 additions and 14 deletions

View File

@@ -34,12 +34,6 @@ const PIString demangle(const char * name) {return PIString(name);}
#endif
PIIntrospectionContainers::_Type::_Type() {
id = count = item_size = 0u;
allocated = used = 0U;
}
PIIntrospectionContainers::PIIntrospectionContainers() {

View File

@@ -45,17 +45,21 @@ public:
#pragma pack(push, 1)
struct PIP_EXPORT _Type {
_Type();
uint id;
uint count;
uint item_size;
ullong allocated;
ullong used;
uint id = 0u;
uint count = 0u;
uint item_size = 0u;
ullong allocated = 0u;
ullong used = 0u;
};
#pragma pack(pop)
struct PIP_EXPORT TypeInfo: _Type {
ullong allocated_bytes = 0u;
ullong used_bytes = 0u;
PIString name;
PIString item_size_str;
PIString allocated_str;
PIString used_str;
};
std::map<uint, _Type> data;

View File

@@ -39,8 +39,8 @@
//! \~russian
//!
//!
//! \~english \section PIMutex_sec0 Usage
//! \~russian \section PIMutex_sec0 Использование
//! \~english \section PIMutex_sec1 Usage
//! \~russian \section PIMutex_sec1 Использование
//!
//! \~english
//! Block of code that should to be executed only one thread simultaniously