From 2e656e88f3506b91bb774f99d5254d3f281fd3d9 Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Fri, 31 Jul 2020 06:17:07 -0700 Subject: [PATCH] Diagnostic panel support --- IDE/src/Debugger/DebugManager.bf | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/IDE/src/Debugger/DebugManager.bf b/IDE/src/Debugger/DebugManager.bf index 529b4274..a3b8a63e 100644 --- a/IDE/src/Debugger/DebugManager.bf +++ b/IDE/src/Debugger/DebugManager.bf @@ -357,9 +357,15 @@ namespace IDE.Debugger [CallingConvention(.Stdcall),CLink] static extern char8* Debugger_GetHotResolveData(uint8* outTypeData, int32* outTypeDataSize); + [CallingConvention(.Stdcall),CLink] + static extern char8* Debugger_GetDbgAllocInfo(); + [CallingConvention(.Stdcall),CLink] static extern void Debugger_SetAliasPath(char8* origPath, char8* localPath); + [CallingConvention(.Stdcall),CLink] + static extern int Debugger_GetDbgAllocHeapSize(); + public String mRunningPath ~ delete _; public bool mIsRunning; public bool mIsRunningCompiled; @@ -1139,6 +1145,12 @@ namespace IDE.Debugger return true; } + public void GetDbgAllocInfo(String outInfo) + { + char8* result = Debugger_GetDbgAllocInfo(); + outInfo.Append(result); + } + public static void GetFailString(StringView result, StringView expr, String outFailStr) { Debug.Assert(result[0] == '!'); @@ -1182,5 +1194,10 @@ namespace IDE.Debugger { Debugger_SetAliasPath(origPath, localPath); } + + public int GetDbgAllocHeapSize() + { + return Debugger_GetDbgAllocHeapSize(); + } } }