Work on the profiler

This commit is contained in:
Victor Olin 2023-03-10 09:24:32 +01:00
parent cdc802476d
commit 51765f4d0c
6 changed files with 101 additions and 49 deletions

View file

@ -23,9 +23,11 @@ namespace GC {
inline static Profiler *m_instance = nullptr;
std::vector<GCEvent *> m_events;
std::ofstream createFileStream();
public:
static void record(GCEventType type);
static void record(GCEventType type, Chunk *chunk);
static void printTrace();
static void dumpTrace();
};
}