summaryrefslogtreecommitdiff
path: root/includes/rts/prof/CCS.h
diff options
context:
space:
mode:
Diffstat (limited to 'includes/rts/prof/CCS.h')
-rw-r--r--includes/rts/prof/CCS.h32
1 files changed, 0 insertions, 32 deletions
diff --git a/includes/rts/prof/CCS.h b/includes/rts/prof/CCS.h
index 89c9fd2b13..e385a9b8fc 100644
--- a/includes/rts/prof/CCS.h
+++ b/includes/rts/prof/CCS.h
@@ -166,9 +166,6 @@ extern CostCentreStack CCS_IDLE[]; // capability is idle
#endif /* IN_STG_CODE */
-extern unsigned int RTS_VAR(CC_ID); // global ids
-extern unsigned int RTS_VAR(CCS_ID);
-
extern unsigned int RTS_VAR(era);
/* -----------------------------------------------------------------------------
@@ -179,36 +176,7 @@ CostCentreStack * pushCostCentre (CostCentreStack *, CostCentre *);
void enterFunCCS (StgRegTable *reg, CostCentreStack *);
CostCentre *mkCostCentre (char *label, char *module, char *srcloc);
-/* -----------------------------------------------------------------------------
- Registering CCs and CCSs
-
- Registering a CC or CCS consists of
- - assigning it a unique ID
- - linking it onto the list of registered CCs/CCSs
-
- Cost centres are registered at startup by a C constructor function
- generated by the compiler in the _stub.c file for each module. The
- macros below are invoked by that C code to register CCs and CCSs.
- -------------------------------------------------------------------------- */
-
extern CostCentre * RTS_VAR(CC_LIST); // registered CC list
-extern CostCentreStack * RTS_VAR(CCS_LIST); // registered CCS list
-
-#define REGISTER_CC(cc) \
- do { \
- if ((cc)->link == (CostCentre *)0) { \
- (cc)->link = CC_LIST; \
- CC_LIST = (cc); \
- (cc)->ccID = CC_ID++; \
- }} while(0)
-
-#define REGISTER_CCS(ccs) \
- do { \
- if ((ccs)->prevStack == (CostCentreStack *)0) { \
- (ccs)->prevStack = CCS_LIST; \
- CCS_LIST = (ccs); \
- (ccs)->ccsID = CCS_ID++; \
- }} while(0)
/* -----------------------------------------------------------------------------
* Declaring Cost Centres & Cost Centre Stacks.