Fill out API more.
This commit is contained in:
@@ -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
@@ -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
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user