Ignore:
Timestamp:
Jun 25, 2020, 2:30:46 PM (3 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
arm-eh, 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/stats.hfa

    r8e27ac45 r69fbc61  
    77        static inline void __init_stats( struct __stats_t * ) {}
    88        static inline void __tally_stats( struct __stats_t *, struct __stats_t * ) {}
    9         static inline void __print_stats( struct __stats_t *, bool, const char *, void * ) {}
     9        static inline void __print_stats( struct __stats_t *, int, bool, const char *, void * ) {}
    1010#else
     11        enum {
     12                CFA_STATS_READY_Q  = 0x01,
     13                #if defined(HAVE_LINUX_IO_URING_H)
     14                        CFA_STATS_IO = 0x02,
     15                #endif
     16        };
     17
    1118        struct __attribute__((aligned(64))) __stats_readQ_t {
    1219                struct {
     
    96103        void __init_stats ( struct __stats_t * );
    97104        void __tally_stats( struct __stats_t *, struct __stats_t * );
    98         void __print_stats( struct __stats_t *, bool, const char *, void * );
     105        void __print_stats( struct __stats_t *, int, bool, const char *, void * );
    99106#endif
    100107
Note: See TracChangeset for help on using the changeset viewer.