Skip to content

Commit

Permalink
Merge pull request #20886 from mpirvu/iprofiler
Browse files Browse the repository at this point in the history
Support for storing all IProfile info to SCC at shutdown
  • Loading branch information
dsouzai authored Jan 8, 2025
2 parents b10ba9d + 8f3784b commit 1fbf35b
Show file tree
Hide file tree
Showing 3 changed files with 538 additions and 185 deletions.
4 changes: 4 additions & 0 deletions runtime/compiler/control/HookedByTheJit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4278,6 +4278,9 @@ void JitShutdown(J9JITConfig * jitConfig)
// so the fact that this option is true doesn't mean that IProfiler structures were not allocated
if (options /* && !options->getOption(TR_DisableInterpreterProfiling) */ && iProfiler)
{
//if (options->getOption(TR_StoreIPInfoOnShutdown))
// iProfiler->persistAllEntries();

printIprofilerStats(options, jitConfig, iProfiler, "Shutdown");
// Prevent the interpreter to accumulate more info
// stopInterpreterProfiling is stronger than turnOff... because it prevents the reactivation
Expand Down Expand Up @@ -7803,6 +7806,7 @@ void printIprofilerStats(TR::Options *options, J9JITConfig * jitConfig, TR_IProf
iProfiler->printAllocationReport();
if (TEST_verbose || options->getOption(TR_VerboseInterpreterProfiling))
iProfiler->outputStats();
// iProfiler->traverseIProfilerTableAndGenerateHistograms(jitConfig);
}
}

Expand Down
Loading

0 comments on commit 1fbf35b

Please sign in to comment.