Ignore:
File:
1 edited

Legend:

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

    r73f4d08 rec43cf9  
    11#pragma once
    2 
    3 // #define CFA_STATS_ARRAY 10000
    42
    53#include <stdint.h>
     
    111109        #endif
    112110
    113         #if defined(CFA_STATS_ARRAY)
    114                 struct __stats_elem_t {
    115                         long long int ts;
    116                         int64_t value;
    117                 };
    118         #endif
    119 
    120111        struct __attribute__((aligned(128))) __stats_t {
    121112                __stats_readQ_t ready;
     
    123114                        __stats_io_t    io;
    124115                #endif
    125 
    126                 #if defined(CFA_STATS_ARRAY)
    127                         struct {
    128                                 __stats_elem_t * values;
    129                                 volatile size_t cnt;
    130                         } array;
    131                 #endif
    132 
    133116        };
    134117
     
    136119        void __tally_stats( struct __stats_t *, struct __stats_t * );
    137120        void __print_stats( struct __stats_t *, int, const char *, const char *, void * );
    138         #if defined(CFA_STATS_ARRAY)
    139                 void __push_stat ( struct __stats_t *, int64_t value, bool external, const char * name, void * handle);
    140                 void __flush_stat( struct __stats_t *, const char *, void * );
    141         #else
    142                 static inline void __push_stat ( struct __stats_t *, int64_t, bool, const char *, void * ) {}
    143                 static inline void __flush_stat( struct __stats_t *, const char *, void * ) {}
    144         #endif
    145121#endif
    146122
Note: See TracChangeset for help on using the changeset viewer.