diff --git a/src/scriptProfiler.cpp b/src/scriptProfiler.cpp index baaa711..aec310d 100644 --- a/src/scriptProfiler.cpp +++ b/src/scriptProfiler.cpp @@ -857,7 +857,8 @@ game_value callExtensionRedirect(game_state&, game_value_parameter ext, game_val auto tempData = GProfilerAdapter->enterScope(profiler.callExtScope); - //GProfilerAdapter->setDescription(tempData, msg); + GProfilerAdapter->setName(tempData, ext); + GProfilerAdapter->setDescription(tempData, msg); auto res = sqf::call_extension(ext,msg); @@ -1039,7 +1040,7 @@ namespace intercept::__internal { private: std::array_name; + auto instructionName = _operators->gsFuncBase::_name; auto found = descriptions.find(reinterpret_cast(instructionName.data())); if (found == descriptions.end()) { @@ -1226,7 +1227,7 @@ class GameInstructionFunction : public game_instruction { typedef bool(__thiscall *OrigEx)(game_instruction*, game_state&, vm_context&); if (instructionLevelProfiling) { - auto instructionName = _functions->_name; + auto instructionName = _functions->gsFuncBase::_name; auto found = descriptions.find(reinterpret_cast(instructionName.data())); if (found == descriptions.end()) {