Changeset 19a1800 in mainline for uspace/app/top/screen.c
- Timestamp:
- 2011-03-01T22:20:56Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- e24e7b1
- Parents:
- 976f546 (diff), ac8285d (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/top/screen.c
r976f546 r19a1800 37 37 38 38 #include <stdio.h> 39 #include <ipc/ipc.h>40 39 #include <io/console.h> 41 40 #include <io/style.h> … … 274 273 { 275 274 screen_style_inverted(); 276 printf("[taskid] [thr eads] [virtual] [%%virt] [%%user]"277 " [%% kernel] [name");275 printf("[taskid] [thrds] [resident] [%%resi] [virtual] [%%virt]" 276 " [%%user] [%%kern] [name"); 278 277 screen_newline(); 279 278 screen_style_normal(); … … 295 294 perc_task_t *perc = data->tasks_perc + data->tasks_map[i]; 296 295 296 uint64_t resmem; 297 char resmem_suffix; 298 order_suffix(task->resmem, &resmem, &resmem_suffix); 299 297 300 uint64_t virtmem; 298 301 char virtmem_suffix; 299 302 order_suffix(task->virtmem, &virtmem, &virtmem_suffix); 300 303 301 printf("%-8" PRIu64 " %9zu %8" PRIu64 "%c ", task->task_id, 302 task->threads, virtmem, virtmem_suffix); 304 printf("%-8" PRIu64 " %7zu %9" PRIu64 "%c ", 305 task->task_id, task->threads, resmem, resmem_suffix); 306 print_percent(perc->resmem, 2); 307 printf(" %8" PRIu64 "%c ", virtmem, virtmem_suffix); 303 308 print_percent(perc->virtmem, 2); 304 309 puts(" "); 305 310 print_percent(perc->ucycles, 2); 306 puts(" 311 puts(" "); 307 312 print_percent(perc->kcycles, 2); 308 313 puts(" ");
Note:
See TracChangeset
for help on using the changeset viewer.