Changeset 7a3ccbc in mainline for uspace/app/ps/ps.c
- Timestamp:
- 2010-04-07T10:41:42Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a325832
- Parents:
- 36b5b0f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/ps/ps.c
r36b5b0f r7a3ccbc 76 76 } 77 77 78 printf(" ID Threads PagesuCycles kCycles Cycle fault Name\n");78 printf(" ID Threads Mem uCycles kCycles Cycle fault Name\n"); 79 79 80 80 int i; … … 82 82 task_info_t taskinfo; 83 83 get_task_info(tasks[i], &taskinfo); 84 uint64_t ucycles, kcycles; 85 char usuffix, ksuffix; 84 uint64_t mem, ucycles, kcycles; 85 char memsuffix, usuffix, ksuffix; 86 order(taskinfo.virt_mem, &mem, &memsuffix); 86 87 order(taskinfo.ucycles, &ucycles, &usuffix); 87 88 order(taskinfo.kcycles, &kcycles, &ksuffix); 88 printf("%8llu %8u %8 u%12llu%c %12llu%c %s\n", tasks[i],89 taskinfo.thread_count, taskinfo.pages, ucycles, usuffix,89 printf("%8llu %8u %8llu%c %12llu%c %12llu%c %s\n", tasks[i], 90 taskinfo.thread_count, mem, memsuffix, ucycles, usuffix, 90 91 kcycles, ksuffix, taskinfo.name); 91 92 }
Note:
See TracChangeset
for help on using the changeset viewer.