Changeset 8834751 for libcfa/src/concurrency/kernel.hfa
- Timestamp:
- Jun 16, 2020, 12:53:58 PM (4 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 2073d207
- Parents:
- d29255c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/kernel.hfa
rd29255c r8834751 50 50 struct __processor_id_t { 51 51 unsigned id; 52 53 #if !defined(__CFA_NO_STATISTICS__) 54 struct __stats_t * stats; 55 #endif 52 56 }; 53 57 … … 165 169 volatile size_t count; 166 170 } lanes; 167 168 // Statistics169 #if !defined(__CFA_NO_STATISTICS__)170 struct __attribute__((aligned(64))) {171 struct {172 // Push statistic173 struct {174 // number of attemps at pushing something175 volatile size_t attempt;176 177 // number of successes at pushing178 volatile size_t success;179 } push;180 181 // Pop statistic182 struct {183 // number of reads of the mask184 // picking an empty __cfa_readyQ_mask_t counts here185 // but not as an attempt186 volatile size_t maskrds;187 188 // number of attemps at poping something189 volatile size_t attempt;190 191 // number of successes at poping192 volatile size_t success;193 } pop;194 } pick;195 196 // stats on the "used" struct of the queue197 // tracks average number of queues that are not empty198 // when pushing / poping199 struct {200 volatile size_t value;201 volatile size_t count;202 } used;203 } global_stats;204 205 #endif206 171 }; 207 172 … … 242 207 #if !defined(__CFA_NO_STATISTICS__) 243 208 bool print_stats; 209 struct __stats_t * stats; 244 210 #endif 245 211 };
Note: See TracChangeset
for help on using the changeset viewer.