Changeset 8b2aba5 in mainline for uspace/app/top/screen.c
- Timestamp:
- 2010-04-02T20:22:14Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade
- Children:
- ee35ba0b
- Parents:
- 8f56d93
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/top/screen.c
r8f56d93 r8b2aba5 46 46 int rows; 47 47 int colls; 48 int up_rows; 48 49 49 50 #define WHITE 0xf0f0f0 … … 59 60 { 60 61 console_get_size(fphone(stdout), &colls, &rows); 62 up_rows = 0; 61 63 console_cursor_visibility(fphone(stdout), 0); 62 64 resume_normal(); … … 68 70 console_clear(fphone(stdout)); 69 71 moveto(0, 0); 72 up_rows = 0; 73 fflush(stdout); 70 74 } 71 75 … … 103 107 } 104 108 109 static inline void print_cpuinfo(data_t *data) 110 { 111 unsigned int i; 112 uspace_cpu_info_t *cpus = data->cpus; 113 for (i = 0; i < data->cpu_count; ++i) { 114 printf("Cpu%u (%4u Mhz): Busy ticks: %6llu, Idle Ticks: %6llu\n", 115 i, (unsigned int)cpus[i].frequency_mhz, cpus[i].busy_ticks, 116 cpus[i].idle_ticks); 117 ++up_rows; 118 } 119 } 120 105 121 static inline void print_tasks(data_t *data, int row) 106 122 { … … 116 132 } 117 133 } 118 119 134 120 135 static inline void print_head(void) … … 139 154 print_load(data); 140 155 puts("\n"); 156 ++up_rows; 141 157 print_taskstat(data); 142 puts("\n\n"); 158 puts("\n"); 159 ++up_rows; 160 print_cpuinfo(data); 161 puts("\n"); 162 ++up_rows; 143 163 print_head(); 144 164 puts("\n");
Note:
See TracChangeset
for help on using the changeset viewer.