- File:
 - 
      
- 1 edited
 
- 
          
  libcfa/src/concurrency/stats.hfa (modified) (4 diffs)
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
      
libcfa/src/concurrency/stats.hfa
r73f4d08 rec43cf9 1 1 #pragma once 2 3 // #define CFA_STATS_ARRAY 100004 2 5 3 #include <stdint.h> … … 111 109 #endif 112 110 113 #if defined(CFA_STATS_ARRAY)114 struct __stats_elem_t {115 long long int ts;116 int64_t value;117 };118 #endif119 120 111 struct __attribute__((aligned(128))) __stats_t { 121 112 __stats_readQ_t ready; … … 123 114 __stats_io_t io; 124 115 #endif 125 126 #if defined(CFA_STATS_ARRAY)127 struct {128 __stats_elem_t * values;129 volatile size_t cnt;130 } array;131 #endif132 133 116 }; 134 117 … … 136 119 void __tally_stats( struct __stats_t *, struct __stats_t * ); 137 120 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 #else142 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 #endif145 121 #endif 146 122  
  Note:
 See   TracChangeset
 for help on using the changeset viewer.