Changes in uspace/app/top/top.h [b8d6783:a0ce870] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/top/top.h
rb8d6783 ra0ce870 51 51 52 52 typedef enum { 53 SCREEN_TABLE, 54 SCREEN_SORT, 55 SCREEN_HELP, 56 } screen_mode_t; 53 OP_TASKS, 54 OP_IPC, 55 OP_EXCS, 56 OP_HELP 57 } op_mode_t; 57 58 58 extern screen_mode_t screen_mode; 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; 59 66 60 67 typedef struct { … … 80 87 } perc_exc_t; 81 88 82 typedef enum {83 FIELD_EMPTY, FIELD_UINT, FIELD_UINT_SUFFIX_BIN, FIELD_UINT_SUFFIX_DEC,84 FIELD_PERCENT, FIELD_STRING85 } 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 110 89 typedef struct { 111 90 time_t hours; … … 128 107 stats_task_t *tasks; 129 108 perc_task_t *tasks_perc; 109 size_t *tasks_map; 130 110 131 111 size_t threads_count; … … 142 122 uint64_t *ecycles_diff; 143 123 uint64_t *ecount_diff; 144 145 table_t table;146 124 } data_t; 147 125
Note:
See TracChangeset
for help on using the changeset viewer.