mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
Kernel: Print a message to debug log after writing a perfcore file
This commit is contained in:
parent
8a5c78e93b
commit
cefb321da4
Notes:
sideshowbarker
2024-07-18 17:31:56 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/cefb321da41
1 changed files with 4 additions and 1 deletions
|
@ -480,7 +480,10 @@ bool Process::dump_perfcore()
|
|||
if (!json)
|
||||
return false;
|
||||
auto json_buffer = UserOrKernelBuffer::for_kernel_buffer(json->data());
|
||||
return !description->write(json_buffer, json->size()).is_error();
|
||||
if (description->write(json_buffer, json->size()).is_error())
|
||||
return false;
|
||||
dbgln("Wrote perfcore to {}", description->absolute_path());
|
||||
return true;
|
||||
}
|
||||
|
||||
void Process::finalize()
|
||||
|
|
Loading…
Reference in a new issue