Ignore:
Timestamp:
Jul 5, 2023, 2:10:59 PM (17 months ago)
Author:
caparsons <caparson@…>
Branches:
master
Children:
7c4416a
Parents:
7ce70e2
Message:

added support for missed gulps benchmark

File:
1 edited

Legend:

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

    r7ce70e2 r9235192c  
    3838// show stats
    3939// #define ACTOR_STATS
     40
     41// used to run and only track missed queue gulps
     42#ifdef ACTOR_STATS
     43#define ACTOR_STATS_QUEUE_MISSED
     44#endif
    4045
    4146// forward decls
     
    129134        #ifdef ACTOR_STATS
    130135        unsigned int id;
     136    #endif
     137    #ifdef ACTOR_STATS_QUEUE_MISSED
    131138        size_t missed;                                                                          // transfers skipped due to being_processed flag being up
    132139        #endif
     
    338345        } // for
    339346
    340         #ifdef ACTOR_STATS
     347        #ifdef ACTOR_STATS_QUEUE_MISSED
    341348        size_t misses = 0;
    342349        for ( i; nrqueues ) {
     
    365372        printf("\tMessages stolen:\t\t\t%lu\n\tAverage steal size:\t\t\t%lu\n", __all_msgs_stolen, avg_steal);
    366373        #endif
     374
     375    #ifndef ACTOR_STATS
     376    #ifdef ACTOR_STATS_QUEUE_MISSED
     377    printf("\t%lu", misses);
     378    #endif
     379    #endif
    367380               
    368381}
Note: See TracChangeset for help on using the changeset viewer.