Ignore:
Timestamp:
Jun 25, 2020, 2:30:46 PM (4 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
566fde0
Parents:
8e27ac45
Message:

Clusters/Processors? can now select which stats to print.
Instead of all or nothing.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/concurrency/kernel.hfa

    r8e27ac45 r69fbc61  
    106106
    107107        #if !defined(__CFA_NO_STATISTICS__)
    108                 bool print_stats;
     108                int print_stats;
    109109                bool print_halts;
    110110        #endif
     
    207207
    208208        #if !defined(__CFA_NO_STATISTICS__)
    209                 bool print_stats;
    210209                struct __stats_t * stats;
     210                int print_stats;
    211211        #endif
    212212};
     
    229229
    230230#if !defined(__CFA_NO_STATISTICS__)
    231         static inline void print_stats_at_exit( cluster & this ) {
    232                 this.print_stats = true;
     231        static inline void print_stats_at_exit( cluster & this, int flags ) {
     232                this.print_stats |= flags;
    233233        }
    234234
    235         static inline void print_stats_at_exit( processor & this ) {
    236                 this.print_stats = true;
     235        static inline void print_stats_at_exit( processor & this, int flags ) {
     236                this.print_stats |= flags;
    237237        }
    238238
Note: See TracChangeset for help on using the changeset viewer.