summaryrefslogtreecommitdiff
path: root/rts/Profiling.c
diff options
context:
space:
mode:
Diffstat (limited to 'rts/Profiling.c')
-rw-r--r--rts/Profiling.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/rts/Profiling.c b/rts/Profiling.c
index cc4d78e448..2544e00e21 100644
--- a/rts/Profiling.c
+++ b/rts/Profiling.c
@@ -240,7 +240,8 @@ initProfilingLogFile(void)
#endif
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 */
prof_filename = NULL;