mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-07 18:17:23 +00:00
Kernel/LibCore: Expose processor id where a thread last ran
This commit is contained in:
parent
d98edb3171
commit
d99901660d
Notes:
sideshowbarker
2024-07-19 05:18:06 +09:00
Author: https://github.com/tomuta
Commit: d99901660d
Pull-request: https://github.com/SerenityOS/serenity/pull/2513
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