#include <stdio.h>#include <stdlib.h>#include <unistd.h>#include <task.h>#include <thread.h>#include <sys/time.h>#include <arch/barrier.h>#include <errno.h>#include <sort.h>#include "screen.h"#include "input.h"#include "top.h"Go to the source code of this file.
| Defines | |
| #define | DAY 86400 | 
| #define | HOUR 3600 | 
| #define | MINUTE 60 | 
| #define | NAME "top" | 
| #define | UPDATE_INTERVAL 1 | 
| Functions | |
| static int | cmp_data (void *a, void *b, void *arg) | 
| static void | compute_percentages (data_t *old_data, data_t *new_data) | 
| Computes percentage differencies from old_data to new_data. | |
| static void | free_data (data_t *target) | 
| int | main (int argc, char *argv[]) | 
| Main entry point. | |
| static const char * | read_data (data_t *target) | 
| static void | sort_data (data_t *data) | 
| Variables | |
| bool | excs_all = false | 
| op_mode_t | op_mode = OP_TASKS | 
| sort_mode_t | sort_mode = SORT_TASK_CYCLES | 
Definition in file top.c.
 1.4.7
 1.4.7