From bc919c843247a6db42fd81748bb04309b4669e9c Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Thu, 12 Dec 2019 20:36:41 +0100 Subject: [PATCH] ProcFS: Rename "samples" in /proc/profile to "frames" These are stack frames, not profile samples. :^) --- Kernel/FileSystem/ProcFS.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Kernel/FileSystem/ProcFS.cpp b/Kernel/FileSystem/ProcFS.cpp index 84237d4d9e..3037985589 100644 --- a/Kernel/FileSystem/ProcFS.cpp +++ b/Kernel/FileSystem/ProcFS.cpp @@ -365,16 +365,16 @@ Optional procfs$profile(InodeIdentifier) object.add("pid", sample.pid); object.add("tid", sample.tid); object.add("timestamp", sample.timestamp); - auto sample_array = object.add_array("samples"); + auto frames_array = object.add_array("frames"); for (size_t i = 0; i < Profiling::max_stack_frame_count; ++i) { if (sample.frames[i] == 0) break; - auto frame_object = sample_array.add_object(); + auto frame_object = frames_array.add_object(); frame_object.add("address", JsonValue((u32)sample.frames[i])); frame_object.add("symbol", sample.symbolicated_frames[i]); frame_object.finish(); } - sample_array.finish(); + frames_array.finish(); }); array.finish(); return builder.build();