rts: RetainerProfile.c: Minimize #includes
authorDaniel Gröber <dxld@darkboxed.org>
Thu, 4 Jul 2019 03:09:21 +0000 (05:09 +0200)
committerDaniel Gröber <dxld@darkboxed.org>
Sun, 22 Sep 2019 13:18:10 +0000 (15:18 +0200)
A lot of these includes are presumably leftovers from when the retainer
profiler still did it's own heap profiling.

rts/RetainerProfile.c

index 5eaf580..301f712 100644 (file)
 #include "PosixSource.h"
 #include "Rts.h"
 
-#include "RtsUtils.h"
 #include "RetainerProfile.h"
 #include "RetainerSet.h"
 #include "TraverseHeap.h"
-#include "Schedule.h"
-#include "Printer.h"
-#include "Weak.h"
-#include "sm/Sanity.h"
 #include "Profiling.h"
 #include "Stats.h"
-#include "ProfHeap.h"
-#include "Apply.h"
 #include "StablePtr.h" /* markStablePtrTable */
 #include "StableName.h" /* rememberOldStableNameAddresses */
-#include "sm/Storage.h" // for END_OF_STATIC_LIST
+#include "sm/Storage.h"
 
 /* Note [What is a retainer?]
    ~~~~~~~~~~~~~~~~~~~~~~~~~~