Changeset 8f74a6a
- Timestamp:
- Feb 28, 2019, 2:33:20 PM (6 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, persistent-indexer, pthread-emulation, qualifiedEnum
- Children:
- c9e640e
- Parents:
- 7abee38
- Location:
- src
- Files:
-
- 2 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Common/Stats.h
r7abee38 r8f74a6a 16 16 #pragma once 17 17 18 #include "Common/Stats/Counter.h" 18 19 #include "Common/Stats/Heap.h" -
src/Common/Stats/Heap.cc
r7abee38 r8f74a6a 21 21 #include <iostream> 22 22 23 //#define WITH_HEAP_STATISTICS24 25 23 namespace Stats { 26 24 namespace Heap { 27 #if !defined( WITH_HEAP_STATISTICS )25 #if defined( NO_HEAP_STATISTICS ) 28 26 void newPass( const char * const ) {} 29 27 30 void print Stats() {}28 void print() {} 31 29 #else 32 30 struct StatBlock { … … 78 76 } 79 77 80 void print Stats() {78 void print() { 81 79 size_t nc = 0; 82 80 size_t total_mallocs = 0; -
src/Common/Stats/Heap.h
r7abee38 r8f74a6a 19 19 namespace Heap { 20 20 void newPass( const char * const name ); 21 void print Stats();21 void print(); 22 22 } 23 23 } -
src/Common/module.mk
r7abee38 r8f74a6a 18 18 Common/Assert.cc \ 19 19 Common/Stats/Heap.cc \ 20 Common/Stats/Counter.cc \ 20 21 Common/Eval.cc \ 21 22 Common/SemanticError.cc \ -
src/Makefile.in
r7abee38 r8f74a6a 166 166 CodeGen/OperatorTable.$(OBJEXT) 167 167 am__objects_2 = Common/Assert.$(OBJEXT) Common/Stats/Heap.$(OBJEXT) \ 168 Common/ Eval.$(OBJEXT) Common/SemanticError.$(OBJEXT) \169 Common/ UniqueName.$(OBJEXT)168 Common/Stats/Counter.$(OBJEXT) Common/Eval.$(OBJEXT) \ 169 Common/SemanticError.$(OBJEXT) Common/UniqueName.$(OBJEXT) 170 170 am__objects_3 = ControlStruct/ForExprMutator.$(OBJEXT) \ 171 171 ControlStruct/LabelFixer.$(OBJEXT) \ … … 561 561 Common/Assert.cc \ 562 562 Common/Stats/Heap.cc \ 563 Common/Stats/Counter.cc \ 563 564 Common/Eval.cc \ 564 565 Common/SemanticError.cc \ … … 727 728 @: > Common/Stats/$(DEPDIR)/$(am__dirstamp) 728 729 Common/Stats/Heap.$(OBJEXT): Common/Stats/$(am__dirstamp) \ 730 Common/Stats/$(DEPDIR)/$(am__dirstamp) 731 Common/Stats/Counter.$(OBJEXT): Common/Stats/$(am__dirstamp) \ 729 732 Common/Stats/$(DEPDIR)/$(am__dirstamp) 730 733 Common/Eval.$(OBJEXT): Common/$(am__dirstamp) \ … … 1114 1117 @AMDEP_TRUE@@am__include@ @am__quote@Common/$(DEPDIR)/SemanticError.Po@am__quote@ 1115 1118 @AMDEP_TRUE@@am__include@ @am__quote@Common/$(DEPDIR)/UniqueName.Po@am__quote@ 1119 @AMDEP_TRUE@@am__include@ @am__quote@Common/Stats/$(DEPDIR)/Counter.Po@am__quote@ 1116 1120 @AMDEP_TRUE@@am__include@ @am__quote@Common/Stats/$(DEPDIR)/Heap.Po@am__quote@ 1117 1121 @AMDEP_TRUE@@am__include@ @am__quote@Concurrency/$(DEPDIR)/Keywords.Po@am__quote@ -
src/main.cc
r7abee38 r8f74a6a 377 377 378 378 deleteAll( translationUnit ); 379 if(!libcfap && !treep) Stats::Heap::printStats(); 379 if(!libcfap && !treep) { 380 Stats::Counters::print(); 381 Stats::Heap::print(); 382 } 383 380 384 return 0; 381 385 } // main
Note: See TracChangeset
for help on using the changeset viewer.