Changes in uspace/app/top/screen.c [172aad6:b3b7e14a] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/top/screen.c
r172aad6 rb3b7e14a 222 222 for (i = 0; i < data->cpus_count; i++) { 223 223 if (data->cpus[i].active) { 224 uint64_t busy; 225 uint64_t idle; 226 char busy_suffix; 227 char idle_suffix; 228 229 order_suffix(data->cpus[i].busy_cycles, &busy, &busy_suffix); 230 order_suffix(data->cpus[i].idle_cycles, &idle, &idle_suffix); 231 232 printf("cpu%u (%4" PRIu16 " MHz): busy cycles: " 233 "%" PRIu64 "%c, idle cycles: %" PRIu64 "%c", 224 printf("cpu%u (%4" PRIu16 " MHz): busy ticks: " 225 "%" PRIu64 ", idle ticks: %" PRIu64, 234 226 data->cpus[i].id, data->cpus[i].frequency_mhz, 235 busy, busy_suffix, idle, idle_suffix);227 data->cpus[i].busy_ticks, data->cpus[i].idle_ticks); 236 228 puts(", idle: "); 237 229 print_percent(data->cpus_perc[i].idle, 2); … … 288 280 size_t i; 289 281 for (i = 0; (i < data->tasks_count) && (row < rows); i++, row++) { 290 stats_task_t *task = data->tasks + data->tasks_map[i];291 perc_task_t *perc = data->tasks_perc + data->tasks_map[i];292 293 282 uint64_t virtmem; 294 283 char virtmem_suffix; 295 order_suffix( task->virtmem, &virtmem, &virtmem_suffix);296 297 printf("%-8" PRIu64 " %9u %8" PRIu64 "%c ", task->task_id,298 task->threads, virtmem, virtmem_suffix);299 print_percent( perc->virtmem, 2);284 order_suffix(data->tasks[i].virtmem, &virtmem, &virtmem_suffix); 285 286 printf("%-8" PRIu64 " %9u %8" PRIu64 "%c ", data->tasks[i].task_id, 287 data->tasks[i].threads, virtmem, virtmem_suffix); 288 print_percent(data->tasks_perc[i].virtmem, 2); 300 289 puts(" "); 301 print_percent( perc->ucycles, 2);290 print_percent(data->tasks_perc[i].ucycles, 2); 302 291 puts(" "); 303 print_percent( perc->kcycles, 2);292 print_percent(data->tasks_perc[i].kcycles, 2); 304 293 puts(" "); 305 print_string( task->name);294 print_string(data->tasks[i].name); 306 295 307 296 screen_newline();
Note:
See TracChangeset
for help on using the changeset viewer.