diff options
author | Ben Wiederhake <BenWiederhake.GitHub@gmx.de> | 2020-08-09 01:08:24 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-08-10 11:51:45 +0200 |
commit | bee08a4b9ff0f2c269a4e3a8159b689fbb8d1ab8 (patch) | |
tree | 7963eede850be6fcf18ac8b3aae30e72a8d30407 /Kernel/Profiling.cpp | |
parent | 7bdf54c8372d6951409fae17dd4cec7eea6573a2 (diff) | |
download | serenity-bee08a4b9ff0f2c269a4e3a8159b689fbb8d1ab8.zip |
Kernel: More PID/TID typing
Diffstat (limited to 'Kernel/Profiling.cpp')
-rw-r--r-- | Kernel/Profiling.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Kernel/Profiling.cpp b/Kernel/Profiling.cpp index ca817afa19..2765b59d34 100644 --- a/Kernel/Profiling.cpp +++ b/Kernel/Profiling.cpp @@ -40,7 +40,7 @@ namespace Profiling { static KBufferImpl* s_profiling_buffer; static size_t s_slot_count; static size_t s_next_slot_index; -static u32 s_pid; +static ProcessID s_pid { -1 }; String& executable_path() { @@ -50,7 +50,7 @@ String& executable_path() return *path; } -u32 pid() +ProcessID pid() { return s_pid; } @@ -61,7 +61,7 @@ void start(Process& process) executable_path() = process.executable()->absolute_path().impl(); else executable_path() = {}; - s_pid = process.pid().value(); // FIXME: PID/TID INCOMPLETE + s_pid = process.pid(); if (!s_profiling_buffer) { s_profiling_buffer = RefPtr<KBufferImpl>(KBuffer::create_with_size(8 * MB).impl()).leak_ref(); @@ -87,6 +87,7 @@ Sample& next_sample_slot() void stop() { + // FIXME: This probably shouldn't be empty. } void did_exec(const String& new_executable_path) |