Skip to content
Snippets Groups Projects
Commit 66cb7e72 authored by takano-akio's avatar takano-akio Committed by pcapriotti
Browse files

Profiling: open .prof when -hr<cc> is specified

The code for retainer profiling is used with e.g. +RTS -hc -hrfoo -RTS,
as well as with +RTS -hr -RTS.

MERGED from commit 4e0a9577
parent 20b25bc6
No related merge requests found
...@@ -240,7 +240,8 @@ initProfilingLogFile(void) ...@@ -240,7 +240,8 @@ initProfilingLogFile(void)
#endif #endif
if (RtsFlags.CcFlags.doCostCentres == 0 && if (RtsFlags.CcFlags.doCostCentres == 0 &&
RtsFlags.ProfFlags.doHeapProfile != HEAP_BY_RETAINER) RtsFlags.ProfFlags.doHeapProfile != HEAP_BY_RETAINER &&
RtsFlags.ProfFlags.retainerSelector == NULL)
{ {
/* No need for the <prog>.prof file */ /* No need for the <prog>.prof file */
prof_filename = NULL; prof_filename = NULL;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment