Ignore:
Timestamp:
Feb 28, 2019, 2:33:20 PM (5 years ago)
Author:
tdelisle <tdelisle@…>
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
Message:

Added code to support generic statistic counters in the compiler

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Common/Stats/Heap.cc

    r7abee38 r8f74a6a  
    2121#include <iostream>
    2222
    23 //#define WITH_HEAP_STATISTICS
    24 
    2523namespace Stats {
    2624        namespace Heap {
    27 #if !defined( WITH_HEAP_STATISTICS )
     25#if defined( NO_HEAP_STATISTICS )
    2826                void newPass( const char * const ) {}
    2927
    30                 void printStats() {}
     28                void print() {}
    3129#else
    3230                struct StatBlock {
     
    7876                }
    7977
    80                 void printStats() {
     78                void print() {
    8179                        size_t nc = 0;
    8280                        size_t total_mallocs = 0;
Note: See TracChangeset for help on using the changeset viewer.