summaryrefslogtreecommitdiff
path: root/rts/Papi.h
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/Papi.h
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/Papi.h')
-rw-r--r--rts/Papi.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/rts/Papi.h b/rts/Papi.h
index eaabdf5495..fc92a913d5 100644
--- a/rts/Papi.h
+++ b/rts/Papi.h
@@ -16,10 +16,12 @@ void papi_init_eventset(int * event_set);
void papi_init(void);
void papi_start_mutator_count(void);
void papi_stop_mutator_count(void);
+
void papi_start_gc_count(void);
-void papi_stop_gc_count(void);
+void papi_stop_gc0_count(void);
+void papi_stop_gc1_count(void);
// for multithreaded GC, each sub-thread uses these functions to count
// events and aggregate them into the main GC counters.
-void papi_thread_start_gc_count(int event_set);
-void papi_thread_stop_gc_count(int event_set);
+void papi_thread_start_gc1_count(int event_set);
+void papi_thread_stop_gc1_count(int event_set);