Started working on a custom profiler

This commit is contained in:
Victor Olin 2023-02-28 18:44:07 +01:00
parent 4f9aaaf8b4
commit 137687e446
8 changed files with 158 additions and 28 deletions

32
src/GC/lib/event.cpp Normal file
View file

@ -0,0 +1,32 @@
#include <chrono>
#include <iostream>
#include <list>
#include "chunk.hpp"
#include "event.hpp"
#include "heap.hpp"
using namespace std;
namespace GC {
GCEventType GCEvent::getType() {
return m_type;
}
TimeStamp GCEvent::getTimeStamp() {
return m_timestamp;
}
Chunk *GCEvent::getChunk() {
return m_chunk;
}
void GCEvent::printShort() {
assert(false && "TODO: unimplemented");
}
void GCEvent::printFull() {
assert(false && "TODO: unimplemented");
}
}