mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 05:57:45 +00:00
Kernel/LibCore: Expose processor id where a thread last ran
This commit is contained in:
parent
d98edb3171
commit
d99901660d
5 changed files with 11 additions and 1 deletions
|
@ -85,6 +85,7 @@ HashMap<pid_t, Core::ProcessStatistics> ProcessStatisticsReader::get_all()
|
|||
thread.name = thread_object.get("name").to_string();
|
||||
thread.state = thread_object.get("state").to_string();
|
||||
thread.ticks = thread_object.get("ticks").to_u32();
|
||||
thread.cpu = thread_object.get("cpu").to_u32();
|
||||
thread.priority = thread_object.get("priority").to_u32();
|
||||
thread.effective_priority = thread_object.get("effective_priority").to_u32();
|
||||
thread.syscall_count = thread_object.get("syscall_count").to_u32();
|
||||
|
|
|
@ -47,6 +47,7 @@ struct ThreadStatistics {
|
|||
unsigned file_read_bytes;
|
||||
unsigned file_write_bytes;
|
||||
String state;
|
||||
u32 cpu;
|
||||
u32 priority;
|
||||
u32 effective_priority;
|
||||
String name;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue