mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 21:48:13 +00:00
Kernel+LibCore: Add process creation time to /sys/kernel/processes
This commit is contained in:
parent
4d49852454
commit
f95dccdb45
3 changed files with 4 additions and 0 deletions
|
@ -83,6 +83,7 @@ ErrorOr<void> SysFSOverallProcesses::try_generate(KBufferBuilder& builder)
|
|||
}
|
||||
TRY(process.name().with([&](auto& process_name) { return process_object.add("name"sv, process_name->view()); }));
|
||||
TRY(process_object.add("executable"sv, process.executable() ? TRY(process.executable()->try_serialize_absolute_path())->view() : ""sv));
|
||||
TRY(process_object.add("creation_time"sv, process.creation_time().nanoseconds_since_epoch()));
|
||||
|
||||
size_t amount_virtual = 0;
|
||||
size_t amount_resident = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue