Fill out API more.

This commit is contained in:
David Anderson
2014-06-24 01:18:16 -07:00
parent ec61d4d188
commit fac52a2897
4 changed files with 22 additions and 5 deletions
+1 -1
View File
@@ -95,7 +95,7 @@ ProfileToolManager::OnRootConsoleCommand2(const char *cmdname, const ICommandArg
}
g_pSourcePawn2->DisableProfiling();
g_pSourcePawn2->SetProfilingTool(nullptr);
active_->Stop();
active_->Stop(render_help);
active_->RenderHelp(render_help);
return;
}
+8 -1
View File
@@ -66,9 +66,10 @@ VProfTool::Start()
}
void
VProfTool::Stop()
VProfTool::Stop(void (*render)(const char *fmt, ...))
{
g_VProfCurrentProfile.Stop();
RenderHelp(render);
}
bool
@@ -77,6 +78,12 @@ VProfTool::IsActive()
return g_VProfCurrentProfile.IsEnabled();
}
bool
VProfTool::IsAttached()
{
return true;
}
intptr_t
VProfTool::RegisterCode(
uintptr_t addr,
+2 -1
View File
@@ -43,8 +43,9 @@ public:
const char *Name() KE_OVERRIDE;
const char *Description() KE_OVERRIDE;
bool Start() KE_OVERRIDE;
void Stop() KE_OVERRIDE;
void Stop(void (*render)(const char *fmt, ...)) KE_OVERRIDE;
bool IsActive() KE_OVERRIDE;
bool IsAttached() KE_OVERRIDE;
intptr_t RegisterCode(
uintptr_t addr,
size_t length,