1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 03:28:20 +02:00

Fixed some profiler shutdown issues

This commit is contained in:
Brian Fiete 2020-04-16 10:46:58 -07:00
parent 6434676134
commit 9eb5280170
5 changed files with 30 additions and 3 deletions

View file

@ -99,10 +99,14 @@ DbgProfiler::DbgProfiler(WinDebugger* debugger) : mShutdownEvent(true)
mStartTick = BFTickCount();
mEndTick = 0;
mDebugger->AddProfiler(this);
}
DbgProfiler::~DbgProfiler()
{
mDebugger->RemoveProfiler(this);
Stop();
DoClear();