summaryrefslogtreecommitdiff
path: root/rts/RtsStartup.c
diff options
context:
space:
mode:
authorsimonmar@microsoft.com <unknown>2007-11-20 13:36:35 +0000
committersimonmar@microsoft.com <unknown>2007-11-20 13:36:35 +0000
commit8db56c8606e6c0e89a87d34c3f67124f1e8b988e (patch)
tree8ee9883969f75dbaa1fcd6d9842f79d5adc56805 /rts/RtsStartup.c
parent510d17388f2c1cde5bbcef8083a57444438614de (diff)
downloadhaskell-8db56c8606e6c0e89a87d34c3f67124f1e8b988e.tar.gz
improvements to PAPI support
- major (multithreaded) GC is measured separately from minor GC - events to measure can now be specified on the command line, e.g prog +RTS -a+PAPI_TOT_CYC
Diffstat (limited to 'rts/RtsStartup.c')
-rw-r--r--rts/RtsStartup.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/rts/RtsStartup.c b/rts/RtsStartup.c
index d1025a3a8b..070275b534 100644
--- a/rts/RtsStartup.c
+++ b/rts/RtsStartup.c
@@ -167,10 +167,6 @@ hs_init(int *argc, char **argv[])
argv++; argc--;
#endif
-#ifdef USE_PAPI
- papi_init();
-#endif
-
/* Set the RTS flags to default values. */
initRtsFlagsDefaults();
@@ -185,6 +181,10 @@ hs_init(int *argc, char **argv[])
setProgArgv(*argc,*argv);
}
+#ifdef USE_PAPI
+ papi_init();
+#endif
+
/* initTracing must be after setupRtsFlags() */
initTracing();