@@ -1178,11 +1178,12 @@ void scriptProfiler::preStart() {
11781178 static auto _profilerSetAdapter = client::host::register_sqf_command (" profilerSetAdapter" , " Set's profiler Adapter" , profilerSetAdapter, game_data_type::NOTHING, game_data_type::STRING);
11791179 static auto _profilerSetCounter = client::host::register_sqf_command (" profilerSetCounter" , " Set's a counter value" , profilerSetCounter, game_data_type::NOTHING, game_data_type::STRING, game_data_type::SCALAR);
11801180
1181-
1182- static auto _profilerCompile = client::host::register_sqf_command (" compile" , " Profiler redirect" , compileRedirect2, game_data_type::CODE, game_data_type::STRING);
1183- // static auto _profilerCompile2 = client::host::register_sqf_command("compile2", "Profiler redirect", compileRedirect, game_data_type::CODE, game_data_type::STRING);
1184- // static auto _profilerCompile3 = client::host::register_sqf_command("compile3", "Profiler redirect", compileRedirect2, game_data_type::CODE, game_data_type::STRING);
1185- static auto _profilerCompileF = client::host::register_sqf_command (" compileFinal" , " Profiler redirect" , compileRedirectFinal, game_data_type::CODE, game_data_type::STRING);
1181+ if (!getCommandLineParam (" -profilerNoInstrumentation" sv)) {
1182+ static auto _profilerCompile = client::host::register_sqf_command (" compile" , " Profiler redirect" , compileRedirect2, game_data_type::CODE, game_data_type::STRING);
1183+ // static auto _profilerCompile2 = client::host::register_sqf_command("compile2", "Profiler redirect", compileRedirect, game_data_type::CODE, game_data_type::STRING);
1184+ // static auto _profilerCompile3 = client::host::register_sqf_command("compile3", "Profiler redirect", compileRedirect2, game_data_type::CODE, game_data_type::STRING);
1185+ static auto _profilerCompileF = client::host::register_sqf_command (" compileFinal" , " Profiler redirect" , compileRedirectFinal, game_data_type::CODE, game_data_type::STRING);
1186+ };
11861187 static auto _profilerCallExt = client::host::register_sqf_command (" callExtension" , " Profiler redirect" , callExtensionRedirect, game_data_type::STRING, game_data_type::STRING, game_data_type::STRING);
11871188 static auto _profilerDiagLog = client::host::register_sqf_command (" diag_log" , " Profiler redirect" , diag_logRedirect, game_data_type::NOTHING, game_data_type::ANY);
11881189 static auto _profilerProfScript = client::host::register_sqf_command (" profileScript" , " Profiler redirect" , profileScript, game_data_type::ARRAY, game_data_type::ARRAY);
0 commit comments