Continued work on profiler
This commit is contained in:
parent
137687e446
commit
0d376171c8
6 changed files with 56 additions and 2 deletions
|
|
@ -64,6 +64,7 @@ namespace GC {
|
|||
size_t m_size;
|
||||
size_t m_allocated_size;
|
||||
uintptr_t *m_stack_top = nullptr;
|
||||
bool m_profiler_enable = false;
|
||||
|
||||
// maybe change to std::list
|
||||
std::vector<Chunk *> m_allocated_chunks;
|
||||
|
|
@ -92,5 +93,6 @@ namespace GC {
|
|||
void collect(uint flags); // conditional collection
|
||||
void check_init(); // print dummy things
|
||||
void print_contents(); // print dummy things
|
||||
void set_profiler(bool mode);
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue