83 GenerationData _gen[MAX_GENERATIONS]; |
83 GenerationData _gen[MAX_GENERATIONS]; |
84 int _head, _tail; // head and tail pointers to above circular buffer |
84 int _head, _tail; // head and tail pointers to above circular buffer |
85 |
85 |
86 bool _has_error; |
86 bool _has_error; |
87 |
87 |
|
88 MemSnapshot* _snapshot; |
|
89 |
88 public: |
90 public: |
89 MemTrackWorker(); |
91 MemTrackWorker(MemSnapshot* snapshot); |
90 ~MemTrackWorker(); |
92 ~MemTrackWorker(); |
91 _NOINLINE_ void* operator new(size_t size); |
93 _NOINLINE_ void* operator new(size_t size); |
92 _NOINLINE_ void* operator new(size_t size, const std::nothrow_t& nothrow_constant); |
94 _NOINLINE_ void* operator new(size_t size, const std::nothrow_t& nothrow_constant); |
93 |
95 |
94 void start(); |
96 void start(); |