feat: graphing in MTK toolkit, kernel exposes CPU time, Processes app Performance tab
This commit is contained in:
@@ -41,9 +41,12 @@ int proclist(ProcInfo* buf, int max); // List all processes (re
|
||||
**`ProcInfo` struct:**
|
||||
```cpp
|
||||
struct ProcInfo {
|
||||
int pid;
|
||||
char name[32];
|
||||
// ... additional fields
|
||||
int32_t pid;
|
||||
int32_t parentPid;
|
||||
uint8_t state;
|
||||
char name[64];
|
||||
uint64_t heapUsed;
|
||||
uint64_t cpuTimeMs;
|
||||
};
|
||||
```
|
||||
|
||||
|
||||
@@ -310,10 +310,11 @@ namespace Montauk {
|
||||
struct ProcInfo {
|
||||
int32_t pid;
|
||||
int32_t parentPid;
|
||||
uint8_t state; // 0=Free, 1=Ready, 2=Running, 3=Terminated
|
||||
uint8_t state; // 0=Free, 1=Ready, 2=Running, 3=Blocked, 4=Terminated
|
||||
uint8_t _pad[3];
|
||||
char name[64];
|
||||
uint64_t heapUsed; // heapNext - UserHeapBase (bytes)
|
||||
uint64_t cpuTimeMs; // accumulated scheduler runtime
|
||||
};
|
||||
|
||||
struct MemStats {
|
||||
|
||||
@@ -199,10 +199,11 @@ typedef struct {
|
||||
typedef struct {
|
||||
int32_t pid;
|
||||
int32_t parent_pid;
|
||||
uint8_t state; /* 0=Free, 1=Ready, 2=Running, 3=Terminated */
|
||||
uint8_t state; /* 0=Free, 1=Ready, 2=Running, 3=Blocked, 4=Terminated */
|
||||
uint8_t _pad[3];
|
||||
char name[64];
|
||||
uint64_t heap_used;
|
||||
uint64_t cpu_time_ms;
|
||||
} mtk_procinfo;
|
||||
|
||||
/* ====================================================================
|
||||
|
||||
Reference in New Issue
Block a user