Changes in uspace/app/top/top.h [9d58539:b8d6783] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/top/top.h
r9d58539 rb8d6783 51 51 52 52 typedef enum { 53 OP_TASKS, 54 OP_IPC, 55 OP_EXCS, 56 OP_HELP 57 } op_mode_t; 53 SCREEN_TABLE, 54 SCREEN_SORT, 55 SCREEN_HELP, 56 } screen_mode_t; 58 57 59 typedef enum { 60 SORT_TASK_CYCLES 61 } sort_mode_t; 62 63 extern op_mode_t op_mode; 64 extern sort_mode_t sort_mode; 65 extern bool excs_all; 58 extern screen_mode_t screen_mode; 66 59 67 60 typedef struct { … … 87 80 } perc_exc_t; 88 81 82 typedef enum { 83 FIELD_EMPTY, FIELD_UINT, FIELD_UINT_SUFFIX_BIN, FIELD_UINT_SUFFIX_DEC, 84 FIELD_PERCENT, FIELD_STRING 85 } field_type_t; 86 87 typedef struct { 88 field_type_t type; 89 union { 90 fixed_float fixed; 91 uint64_t uint; 92 const char *string; 93 }; 94 } field_t; 95 96 typedef struct { 97 const char *name; 98 char key; 99 int width; 100 } column_t; 101 102 typedef struct { 103 const char *name; 104 size_t num_columns; 105 const column_t *columns; 106 size_t num_fields; 107 field_t *fields; 108 } table_t; 109 89 110 typedef struct { 90 111 time_t hours; … … 107 128 stats_task_t *tasks; 108 129 perc_task_t *tasks_perc; 109 size_t *tasks_map;110 130 111 131 size_t threads_count; … … 122 142 uint64_t *ecycles_diff; 123 143 uint64_t *ecount_diff; 144 145 table_t table; 124 146 } data_t; 125 147
Note:
See TracChangeset
for help on using the changeset viewer.