Skip to content

Commit 229d83d

Browse files
committed
chore: re-enable vprof
1 parent f57660d commit 229d83d

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

src/core/game_system.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ GS_EVENT_MEMBER(CGameSystem, BuildGameSessionManifest)
7474

7575
GS_EVENT_MEMBER(CGameSystem, ServerPreEntityThink)
7676
{
77-
// VPROF_BUDGET("CS#::CGameSystem::ServerPreEntityThink", "CS# On Frame");
77+
VPROF_BUDGET("CS#::CGameSystem::ServerPreEntityThink", "CS# On Frame");
7878
auto callback = counterstrikesharp::globals::serverManager.on_server_pre_entity_think;
7979

8080
if (callback && callback->GetFunctionCount())
@@ -92,7 +92,7 @@ GS_EVENT_MEMBER(CGameSystem, ServerPreEntityThink)
9292

9393
GS_EVENT_MEMBER(CGameSystem, ServerPostEntityThink)
9494
{
95-
// VPROF_BUDGET("CS#::CGameSystem::ServerPostEntityThink", "CS# On Frame");
95+
VPROF_BUDGET("CS#::CGameSystem::ServerPostEntityThink", "CS# On Frame");
9696
auto callback = counterstrikesharp::globals::serverManager.on_server_post_entity_think;
9797

9898
if (callback && callback->GetFunctionCount())

src/core/managers/entity_manager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ void EntityManager::CheckTransmit(CCheckTransmitInfoHack** ppInfoList,
243243
const uint16* pEntityIndicies,
244244
uint32_t nEntities)
245245
{
246-
// VPROF_BUDGET(m_profile_name.c_str(), "CS# CheckTransmit");
246+
VPROF_BUDGET(m_profile_name.c_str(), "CS# CheckTransmit");
247247

248248
auto callback = globals::entityManager.check_transmit;
249249

src/core/managers/event_manager.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ bool EventManager::OnFireEvent(IGameEvent* pEvent, bool bDontBroadcast)
212212
pCallback->ScriptContext().Push(pEvent);
213213
pCallback->ScriptContext().Push(&override);
214214

215-
// VPROF_BUDGET("CS#::OnFireEvent", "CS# Event Hooks");
215+
VPROF_BUDGET("CS#::OnFireEvent", "CS# Event Hooks");
216216
for (auto fnMethodToCall : pCallback->GetFunctions())
217217
{
218218
if (!fnMethodToCall) continue;
@@ -259,7 +259,7 @@ bool EventManager::OnFireEventPost(IGameEvent* pEvent, bool bDontBroadcast)
259259

260260
if (pCallback)
261261
{
262-
// VPROF_BUDGET("CS#::OnFireEventPost", "CS# Event Hooks");
262+
VPROF_BUDGET("CS#::OnFireEventPost", "CS# Event Hooks");
263263

264264
auto pEventCopy = m_EventCopies.top();
265265
CSSHARP_CORE_TRACE("Pushing event `{}` pointer: {}, dont broadcast: {}, post: {}", pEventCopy->GetName(), (void*)pEventCopy,

src/core/managers/player_manager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ CPlayer* PlayerManager::GetPlayerBySlot(int client) const
330330

331331
void PlayerManager::RunThink() const
332332
{
333-
// VPROF_BUDGET("CS#::PlayerManager::RunThink", "CS# On Frame");
333+
VPROF_BUDGET("CS#::PlayerManager::RunThink", "CS# On Frame");
334334

335335
for (int i = 0; i <= MaxClients(); i++)
336336
{

src/mm_plugin.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ void CounterStrikeSharpMMPlugin::Hook_GameFrame(bool simulating, bool bFirstTick
250250
* true | game is ticking
251251
* false | game is not ticking
252252
*/
253-
// VPROF_BUDGET("CS#::Hook_GameFrame", "CS# On Frame");
253+
VPROF_BUDGET("CS#::Hook_GameFrame", "CS# On Frame");
254254
globals::timerSystem.OnGameFrame(simulating);
255255

256256
auto callbacks = globals::tickScheduler.getCallbacks(globals::getGlobalVars()->tickcount);

src/scripting/callback_manager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ void ScriptCallback::Execute(bool bResetContext)
6565
return;
6666
}
6767

68-
// VPROF_BUDGET(m_profile_name.c_str(), "CS# Script Callbacks");
68+
VPROF_BUDGET(m_profile_name.c_str(), "CS# Script Callbacks");
6969

7070
for (size_t nI = 0; nI < m_functions.size(); ++nI)
7171
{

0 commit comments

Comments
 (0)