mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 18:02:05 -05:00
Kernel: Print a message to debug log after writing a perfcore file
This commit is contained in:
parent
8a5c78e93b
commit
cefb321da4
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…
Add table
Reference in a new issue