Changeset 8f74a6a for src/Common
- 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/Common
- Files:
-
- 2 added
- 4 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 \
Note: See TracChangeset
for help on using the changeset viewer.