Changeset fd1f65e for libcfa/src/concurrency/stats.cfa
- Timestamp:
- Apr 1, 2021, 8:02:19 PM (2 years ago)
- Branches:
- arm-eh, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- a344425
- Parents:
- b580bcc
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/stats.cfa
rb580bcc rfd1f65e 13 13 stats->ready.pick.push.local = 0; 14 14 stats->ready.pick.push.lsuccess = 0; 15 stats->ready.pick.ext.attempt = 0; 16 stats->ready.pick.ext.success = 0; 17 stats->ready.pick.ext.local = 0; 18 stats->ready.pick.ext.lsuccess = 0; 15 19 stats->ready.pick.pop .probe = 0; 16 20 stats->ready.pick.pop .attempt = 0; … … 47 51 __atomic_fetch_add( &cltr->ready.pick.push.local , proc->ready.pick.push.local , __ATOMIC_SEQ_CST ); proc->ready.pick.push.local = 0; 48 52 __atomic_fetch_add( &cltr->ready.pick.push.lsuccess, proc->ready.pick.push.lsuccess, __ATOMIC_SEQ_CST ); proc->ready.pick.push.lsuccess = 0; 53 __atomic_fetch_add( &cltr->ready.pick.ext.attempt , proc->ready.pick.ext.attempt , __ATOMIC_SEQ_CST ); proc->ready.pick.ext.attempt = 0; 54 __atomic_fetch_add( &cltr->ready.pick.ext.success , proc->ready.pick.ext.success , __ATOMIC_SEQ_CST ); proc->ready.pick.ext.success = 0; 55 __atomic_fetch_add( &cltr->ready.pick.ext.local , proc->ready.pick.ext.local , __ATOMIC_SEQ_CST ); proc->ready.pick.ext.local = 0; 56 __atomic_fetch_add( &cltr->ready.pick.ext.lsuccess , proc->ready.pick.ext.lsuccess , __ATOMIC_SEQ_CST ); proc->ready.pick.ext.lsuccess = 0; 49 57 __atomic_fetch_add( &cltr->ready.pick.pop .probe , proc->ready.pick.pop .probe , __ATOMIC_SEQ_CST ); proc->ready.pick.pop .probe = 0; 50 58 __atomic_fetch_add( &cltr->ready.pick.pop .attempt , proc->ready.pick.pop .attempt , __ATOMIC_SEQ_CST ); proc->ready.pick.pop .attempt = 0; … … 80 88 if( flags & CFA_STATS_READY_Q ) { 81 89 double push_len = ((double)ready.pick.push.attempt) / ready.pick.push.success; 90 double ext_len = ((double)ready.pick.ext .attempt) / ready.pick.ext .success; 82 91 double pop_len = ((double)ready.pick.pop .attempt) / ready.pick.pop .success; 83 92 84 93 double lpush_len = ((double)ready.pick.push.local) / ready.pick.push.lsuccess; 94 double lext_len = ((double)ready.pick.ext .local) / ready.pick.ext .lsuccess; 85 95 double lpop_len = ((double)ready.pick.pop .local) / ready.pick.pop .lsuccess; 86 96 … … 89 99 "- total threads : %'15" PRIu64 "run, %'15" PRIu64 "schd (%'" PRIu64 "mig )\n" 90 100 "- push avg probe : %'3.2lf, %'3.2lfl (%'15" PRIu64 " attempts, %'15" PRIu64 " locals)\n" 101 "- ext avg probe : %'3.2lf, %'3.2lfl (%'15" PRIu64 " attempts, %'15" PRIu64 " locals)\n" 91 102 "- pop avg probe : %'3.2lf, %'3.2lfl (%'15" PRIu64 " attempts, %'15" PRIu64 " locals)\n" 92 103 "- Idle Sleep : %'15" PRIu64 "h, %'15" PRIu64 "c, %'15" PRIu64 "w, %'15" PRIu64 "e\n" … … 97 108 , ready.threads.migration 98 109 , push_len, lpush_len, ready.pick.push.attempt, ready.pick.push.local 110 , ext_len , lext_len , ready.pick.ext .attempt, ready.pick.ext .local 99 111 , pop_len , lpop_len , ready.pick.pop .attempt, ready.pick.pop .local 100 112 , ready.sleep.halts, ready.sleep.cancels, ready.sleep.wakes, ready.sleep.exits
Note: See TracChangeset
for help on using the changeset viewer.