axle OS
x86_32 UNIX-like hobby OS
record.h
1 #ifndef SCHED_RECORD_H
2 #define SCHED_RECORD_H
3 
4 #include "task.h"
5 #include <stdint.h>
6 
7 #define MAX_TASK_HISTORY 256
8 #define MAX_PROC_NAME 64
9 
10 typedef struct task_history {
11  char history[MAX_TASK_HISTORY][MAX_PROC_NAME];
12  int vals[MAX_TASK_HISTORY];
13  int count;
14  uint32_t time;
16 
17 void sched_record_usage(task_t* current_task, uint32_t runtime);
18 void sched_log_history();
19 task_history_t* sched_get_task_history();
20 
21 #endif
Definition: task.h:30
Definition: record.h:10