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

Added diagnostics panel

This commit is contained in:
Brian Fiete 2020-07-31 06:16:29 -07:00
parent efa9566f88
commit f034880723
12 changed files with 1017 additions and 51 deletions

View file

@ -384,6 +384,31 @@ struct WinHotThreadState
int mThreadId;
};
class WinDbgHeapData
{
public:
struct Stats
{
intptr mHeapSize;
};
public:
HANDLE mFileMapping;
Stats* mStats;
WinDbgHeapData()
{
mFileMapping = 0;
mStats = NULL;
}
~WinDbgHeapData()
{
if (mFileMapping != 0)
::CloseHandle(mFileMapping);
}
};
class WinDebugger : public Debugger
{
public:
@ -407,6 +432,7 @@ public:
CPU* mCPU;
PROCESS_INFORMATION mProcessInfo;
BfDbgAttachFlags mDbgAttachFlags;
WinDbgHeapData* mDbgHeapData;
DWORD mDbgProcessId;
HANDLE mDbgProcessHandle;
HANDLE mDbgThreadHandle;
@ -593,6 +619,8 @@ public:
virtual void Run() override;
virtual void HotLoad(const Array<String>& objectFiles, int hotIdx) override;
virtual void InitiateHotResolve(DbgHotResolveFlags flags) override;
virtual intptr GetDbgAllocHeapSize() override;
virtual String GetDbgAllocInfo() override;
virtual void Update() override;
virtual void ContinueDebugEvent() override;
virtual void ForegroundTarget() override;