Changeset 54c1196
- Timestamp:
- Mar 25, 2022, 1:49:24 PM (3 years ago)
- Branches:
- ADT, ast-experimental, enum, master, pthread-emulation, qualifiedEnum
- Children:
- 64bdacc
- Parents:
- 202c80b
- Location:
- libcfa/src/concurrency
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/io.cfa
r202c80b r54c1196 111 111 // Drain the queue 112 112 if(!__atomic_try_acquire(&ctx->cq.lock)) { 113 __STATS__( false, io.calls.locked++; ) 113 114 return false; 114 115 } … … 191 192 if(age > cutoff) { 192 193 remote = __cfa_do_drain( io.data[target], cltr ); 194 if(remote) __STATS__( false, io.calls.helped++; ) 193 195 } 194 196 } -
libcfa/src/concurrency/stats.cfa
r202c80b r54c1196 55 55 stats->io.calls.drain = 0; 56 56 stats->io.calls.completed = 0; 57 stats->io.calls.locked = 0; 58 stats->io.calls.helped = 0; 57 59 stats->io.calls.errors.busy = 0; 58 60 stats->io.ops.sockread = 0; … … 123 125 tally_one( &cltr->io.calls.drain , &proc->io.calls.drain ); 124 126 tally_one( &cltr->io.calls.completed , &proc->io.calls.completed ); 127 tally_one( &cltr->io.calls.locked , &proc->io.calls.locked ); 128 tally_one( &cltr->io.calls.helped , &proc->io.calls.helped ); 125 129 tally_one( &cltr->io.calls.errors.busy, &proc->io.calls.errors.busy ); 126 130 tally_one( &cltr->io.ops.sockread , &proc->io.ops.sockread ); … … 205 209 | " sub " | eng3(io.calls.submitted) | "/" | eng3(io.calls.flush) | "(" | ws(3, 3, avgsubs) | "/flush)" 206 210 | " - cmp " | eng3(io.calls.completed) | "/" | eng3(io.calls.drain) | "(" | ws(3, 3, avgcomp) | "/drain)" 211 | " - cmp " | eng3(io.calls.locked) | "locked, " | eng3(io.calls.helped) | "helped" 207 212 | " - " | eng3(io.calls.errors.busy) | " EBUSY"; 208 213 sstr | " - sub: " | eng3(io.flush.full) | "full, " | eng3(io.flush.dirty) | "drty, " | eng3(io.flush.idle) | "idle, " | eng3(io.flush.eager) | "eagr, " | eng3(io.flush.external) | "ext"; -
libcfa/src/concurrency/stats.hfa
r202c80b r54c1196 103 103 volatile uint64_t drain; 104 104 volatile uint64_t completed; 105 volatile uint64_t locked; 106 volatile uint64_t helped; 105 107 volatile uint64_t flush; 106 108 volatile uint64_t submitted;
Note: See TracChangeset
for help on using the changeset viewer.