Browse Source

Kernel: Print a message to debug log after writing a perfcore file

Andreas Kling 4 years ago
parent
commit
cefb321da4
1 changed files with 4 additions and 1 deletions
  1. 4 1
      Kernel/Process.cpp

+ 4 - 1
Kernel/Process.cpp

@@ -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()