Ignore:
Timestamp:
Apr 5, 2021, 7:03:05 PM (3 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
ec43cf9
Parents:
b0904bf
Message:

Fix a bug where stats from the main processor where not tallied properly.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/concurrency/kernel/startup.cfa

    rb0904bf ra5a01faa  
    262262        __kernel_alarm_shutdown();
    263263
     264        #if !defined( __CFA_NO_STATISTICS__ )
     265                __stats_t * st = (__stats_t *)& storage_mainProcStats;
     266                __tally_stats(mainCluster->stats, st);
     267                if( 0 != mainProcessor->print_stats ) {
     268                        __print_stats( st, mainProcessor->print_stats, "Processor ", mainProcessor->name, (void*)mainProcessor );
     269                }
     270        #endif
     271
    264272        // Destroy the main processor and its context in reverse order of construction
    265273        // These were manually constructed so we need manually destroy them
Note: See TracChangeset for help on using the changeset viewer.