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.cfa

    r8e27ac45 r69fbc61  
    241241
    242242        #if !defined(__CFA_NO_STATISTICS__)
    243                 print_stats = false;
     243                print_stats = 0;
    244244                print_halts = false;
    245245        #endif
     
    281281
    282282        #if !defined(__CFA_NO_STATISTICS__)
    283                 print_stats = false;
     283                print_stats = 0;
    284284                stats = alloc();
    285285                __init_stats( stats );
     
    297297
    298298        #if !defined(__CFA_NO_STATISTICS__)
    299                 if(this.print_stats) {
    300                         __print_stats( this.stats, true, this.name, (void*)&this );
     299                if( 0 != this.print_stats ) {
     300                        __print_stats( this.stats, this.print_stats, true, this.name, (void*)&this );
    301301                }
    302302                free( this.stats );
     
    568568        #if !defined(__CFA_NO_STATISTICS__)
    569569                __tally_stats(proc->cltr->stats, &local_stats);
    570                 if(proc->print_stats) {
    571                         __print_stats( &local_stats, true, proc->name, (void*)proc );
     570                if( 0 != proc->print_stats ) {
     571                        __print_stats( &local_stats, proc->print_stats, true, proc->name, (void*)proc );
    572572                }
    573573        #endif
Note: See TracChangeset for help on using the changeset viewer.