mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-04 23:29:52 +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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue