Skip to content

Commit

Permalink
Disable things in engine profiling by default
Browse files Browse the repository at this point in the history
  • Loading branch information
dedmen committed Feb 12, 2019
1 parent c756d71 commit 68d16c3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/scriptProfiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1121,17 +1121,17 @@ void scriptProfiler::preStart() {
} else {
engineProf = std::make_shared<EngineProfiling>();

if (getCommandLineParam("-profilerEngineMTO"sv)) {
if (!getCommandLineParam("-profilerEngineThreads"sv)) {
engineProf->setMainThreadOnly();
diag_log("ASP: Engine profiler main thread only mode"sv);
}

if (getCommandLineParam("-profilerEngineNoFile"sv)) {
if (!getCommandLineParam("-profilerEngineDoFile"sv)) {
engineProf->setNoFile();
diag_log("ASP: Engine profiler NoFile mode"sv);
}

if (getCommandLineParam("-profilerEngineNoMem"sv)) {
if (!getCommandLineParam("-profilerEngineDoMem"sv)) {
engineProf->setNoMem();
diag_log("ASP: Engine profiler NoMem mode"sv);
}
Expand Down

0 comments on commit 68d16c3

Please sign in to comment.