Skip to content

Commit

Permalink
Exported variant of log_report without parameters.
Browse files Browse the repository at this point in the history
  • Loading branch information
Neloreck committed Jan 19, 2025
1 parent 246055a commit ecedffc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/xrScriptEngine/ScriptEngineScript.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,11 @@ SCRIPT_EXPORT(CScriptEngine, (),
{
GEnv.ScriptEngine->m_profiler->reset();
}),
def("log_report", +[](u32 entries_limit = CScriptProfiler::PROFILE_ENTRIES_LOG_LIMIT_DEFAULT)
def("log_report", +[]()
{
GEnv.ScriptEngine->m_profiler->logReport();
}),
def("log_report", +[](u32 entries_limit)
{
GEnv.ScriptEngine->m_profiler->logReport(entries_limit);
}),
Expand Down

0 comments on commit ecedffc

Please sign in to comment.