Changeset 4117761 for src/Common/Stats


Ignore:
Timestamp:
Jun 29, 2024, 5:02:49 AM (3 months ago)
Author:
JiadaL <j82liang@…>
Branches:
master
Children:
115ac1ce
Parents:
5ccc733 (diff), 3c55fcd (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' of plg.uwaterloo.ca:software/cfa/cfa-cc

File:
1 edited

Legend:

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

    r5ccc733 r4117761  
    2121#include <iostream>
    2222
    23 #if defined(__has_feature)
     23// Most of the other statistics features are deactivated only by defining
     24// NO_STATISTICS (or their NO_%_STATISTICS macro). However the heap has some
     25// other compatability concerns and will disable itself in some cases.
     26//
     27// I do not claim to understand these cases. But TCMALLOC is often defined by
     28// default and you can pass --disable-gprofiler to configure to remove it.
     29
     30#if defined(NO_STATISTICS) || defined(TCMALLOC) || defined(__SANITIZE_ADDRESS__)
     31        #define NO_HEAP_STATISTICS
     32#elif defined(__has_feature)
    2433        #if __has_feature(address_sanitizer)
    25                 #define NO_HEAP_STATISTICS
    26         # endif
    27 #endif
    28 
    29 #if defined( NO_STATISTICS ) || defined( TCMALLOC ) || defined(__SANITIZE_ADDRESS__)
    30         #if !defined(NO_HEAP_STATISTICS)
    3134                #define NO_HEAP_STATISTICS
    3235        #endif
Note: See TracChangeset for help on using the changeset viewer.