Changeset c34ebf2 for libcfa/src/concurrency/stats.cfa
- Timestamp:
- Jun 25, 2020, 1:34:34 PM (3 years ago)
- Branches:
- arm-eh, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 8e27ac45
- Parents:
- c953163
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/stats.cfa
rc953163 rc34ebf2 73 73 } 74 74 75 void __print_stats( struct __stats_t * stats ) with( *stats ) {75 void __print_stats( struct __stats_t * stats, bool cluster, const char * name, void * id ) with( *stats ) { 76 76 77 77 double push_sur = (100.0 * ((double)ready.pick.push.success) / ready.pick.push.attempt); … … 108 108 109 109 __cfaabi_bits_print_safe( STDOUT_FILENO, 110 "----- Ready Q Stats -----\n"110 "----- %s \"%s\" (%p) - Ready Q Stats -----\n" 111 111 "- total threads run : %'15lu\n" 112 112 "- total threads scheduled: %'15lu\n" … … 121 121 "-- schedule wake : %'15lu\n" 122 122 "-- wake on exit : %'15lu\n" 123 #if defined(HAVE_LINUX_IO_URING_H) 124 "\n" 125 "----- I/O Stats -----\n" 123 "\n" 124 , cluster ? "Cluster" : "Processor", name, id 125 , ready.pick.pop.success 126 , ready.pick.push.success 127 , push_len, push_sur, ready.pick.push.attempt 128 , pop_len , pop_sur , ready.pick.pop .attempt 129 , lpush_len, lpush_sur, ready.pick.push.local 130 , lpop_len , lpop_sur , ready.pick.pop .local 131 , ready.threads.migration 132 , ready.sleep.halts, ready.sleep.cancels, ready.sleep.wakes, ready.sleep.exits 133 ); 134 #if defined(HAVE_LINUX_IO_URING_H) 135 __cfaabi_bits_print_safe( STDOUT_FILENO, 136 "----- %s \"%s\" (%p) - I/O Stats -----\n" 126 137 "- total submit calls : %'15lu\n" 127 138 "- avg ready entries : %'18.2lf\n" … … 136 147 "- total wait calls : %'15lu (%'lu slow, %'lu fast)\n" 137 148 "- avg completion/wait : %'18.2lf\n" 138 #endif 139 , ready.pick.pop.success 140 , ready.pick.push.success 141 , push_len, push_sur, ready.pick.push.attempt 142 , pop_len , pop_sur , ready.pick.pop .attempt 143 , lpush_len, lpush_sur, ready.pick.push.local 144 , lpop_len , lpop_sur , ready.pick.pop .local 145 , ready.threads.migration 146 , ready.sleep.halts, ready.sleep.cancels, ready.sleep.wakes, ready.sleep.exits 147 #if defined(HAVE_LINUX_IO_URING_H) 149 "\n" 150 , cluster ? "Cluster" : "Processor", name, id 148 151 , io.submit_q.submit_avg.cnt 149 , avgrdy 150 , avgcsm 151 , avgavl 152 , avgrdy, avgcsm, avgavl 152 153 , io.submit_q.look_avg.cnt 153 , lavgv 154 , lavgb 154 , lavgv, lavgb 155 155 , io.submit_q.alloc_avg.cnt 156 , aavgv 157 , aavgb 156 , aavgv, aavgb 158 157 , io.complete_q.completed_avg.slow_cnt + io.complete_q.completed_avg.fast_cnt 159 158 , io.complete_q.completed_avg.slow_cnt, io.complete_q.completed_avg.fast_cnt 160 159 , ((double)io.complete_q.completed_avg.val) / (io.complete_q.completed_avg.slow_cnt + io.complete_q.completed_avg.fast_cnt) 161 #endif162 );160 ); 161 #endif 163 162 } 164 163 #endif
Note: See TracChangeset
for help on using the changeset viewer.