LeviLamina
Loading...
Searching...
No Matches
MemoryTracker.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/memory/MemoryCategory.h"
7
8// auto generated forward declare list
9// clang-format off
10namespace Memory { struct MemoryCategoryCounter; }
11// clang-format on
12
13namespace Memory {
14
16public:
17 // virtual functions
18 // NOLINTBEGIN
19 // vIndex: 0
20 virtual ~MemoryTracker() = default;
21
22 // vIndex: 1
23 virtual bool isTracking() const;
24
25 // vIndex: 2
26 virtual ::Memory::MemoryCategory getCurrentCategory() const;
27
28 // vIndex: 3
29 virtual void setCurrentCategory(::Memory::MemoryCategory);
30
31 // vIndex: 4
32 virtual uint64 getCategoryAllocationCount(uint) const;
33
34 // vIndex: 5
35 virtual uint64 getCategoryAllocatedMemory(uint) const;
36
37 // vIndex: 6
38 virtual uint64 getCategoryTotalAllocationCount(uint) const;
39
40 // vIndex: 7
41 virtual char const* getCategoryName(uint) const;
42
43 // vIndex: 8
44 virtual void publish();
45
46 // vIndex: 9
47 virtual void populateCounters(::std::vector<::Memory::MemoryCategoryCounter>&, uint64) const;
48 // NOLINTEND
49
50public:
51 // static variables
52 // NOLINTBEGIN
53 MCAPI static ::Memory::MemoryTracker*& mInstance();
54 // NOLINTEND
55
56public:
57 // virtual function thunks
58 // NOLINTBEGIN
59 MCFOLD bool $isTracking() const;
60
61 MCFOLD ::Memory::MemoryCategory $getCurrentCategory() const;
62
63 MCFOLD void $setCurrentCategory(::Memory::MemoryCategory);
64
65 MCFOLD uint64 $getCategoryAllocationCount(uint) const;
66
67 MCFOLD uint64 $getCategoryAllocatedMemory(uint) const;
68
69 MCFOLD uint64 $getCategoryTotalAllocationCount(uint) const;
70
71 MCFOLD char const* $getCategoryName(uint) const;
72
73 MCFOLD void $publish();
74
75 MCFOLD void $populateCounters(::std::vector<::Memory::MemoryCategoryCounter>&, uint64) const;
76 // NOLINTEND
77
78public:
79 // vftables
80 // NOLINTBEGIN
81 MCNAPI static void** $vftable();
82 // NOLINTEND
83};
84
85} // namespace Memory
Definition MemoryTracker.h:15
static MCAPI void ** $vftable()