Continued work on profiler

This commit is contained in:
Victor Olin 2023-03-06 11:59:28 +01:00
parent 137687e446
commit 0d376171c8
6 changed files with 56 additions and 2 deletions

View file

@ -404,4 +404,9 @@ namespace GC {
cout << "NO FREED CHUNKS" << endl;
}
}
void Heap::set_profiler(bool mode) {
auto heap = Heap::the();
heap->m_profiler_enable = mode;
}
}