simple memory profiling on Windows using the CRT debug heap

refs #81
This commit is contained in:
Mathew Sutcliffe
2013-12-15 22:24:45 +00:00
parent 388d297a2d
commit c37e160a42
2 changed files with 83 additions and 1 deletions

View File

@@ -169,6 +169,20 @@ namespace BlackMisc
*/
uint calculateHash(const QList<uint> &values, const char *className);
/*!
* \brief Real heap size of an object
* \param type
* \return
*/
size_t heapSizeOf(const QMetaType &type);
/*!
* \brief Real heap size of an object
* \param objectType
* \return
*/
size_t heapSizeOf(const QMetaObject &objectType);
} // BlackMisc
#endif // guard