|
HDK
|
#include "UT_API.h"#include <SYS/SYS_Types.h>#include <SYS/SYS_Math.h>#include <SYS/SYS_AtomicInt.h>#include "UT_NonCopyable.h"#include "UT_ThreadSpecificValue.h"#include <cstddef>
Include dependency graph for UT_MemoryTable.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Classes | |
| class | UT_MemoryUser |
| class | UT_MemoryTable |
| class | UT_MemoryAPI |
Macros | |
| #define | UT_MEMORY_SUBCLASS(STATIC, prefix, table) |
| #define | UT_MEMPRINTSIZE 32 |
Functions | |
| UT_API void | UTprintMemory (char buf[UT_MEMPRINTSIZE], int64 memory, int field_width=-1) |
| #define UT_MEMORY_SUBCLASS | ( | STATIC, | |
| prefix, | |||
| table | |||
| ) |
When implementing in a different library, the following macro can be used to implement a localized interface. For example, we might have UT_MEMORY_SUBCLASS(, GU, theGUMemoryTable) or class GU_Memory { public: UT_MEMORY_SUBCLASS(static, GU, myMemoryTable) private: static UT_MemoryTable myMemoryTable; };
Definition at line 303 of file UT_MemoryTable.h.
| #define UT_MEMPRINTSIZE 32 |
Convenience function to print memory in a consistent format (i.e. 12.3 KB). To print "18446744073709551616.00 MB" requires 27 characters. There are 5 extra characters for good measure in UT_MEMPRINTSIZE
Definition at line 321 of file UT_MemoryTable.h.