summaryrefslogtreecommitdiff
path: root/Kernel/Profiling.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-02-22 10:54:50 +0100
committerAndreas Kling <kling@serenityos.org>2020-02-22 10:54:50 +0100
commitd7a13dbaa7312ef83054478399c847ae3b4b6813 (patch)
tree00c15e33df3015b0244d310771241441f434cacc /Kernel/Profiling.h
parent647d0b9e0ff43060097bb772beb1ad1fd8e1aed2 (diff)
downloadserenity-d7a13dbaa7312ef83054478399c847ae3b4b6813.zip
Kernel: Reset profiling state on exec() (but keep it going)
We now log the new executable on exec() and throw away all the samples we've accumulated so far. But profiling keeps going.
Diffstat (limited to 'Kernel/Profiling.h')
-rw-r--r--Kernel/Profiling.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Kernel/Profiling.h b/Kernel/Profiling.h
index d94c81ece0..dc419a34a6 100644
--- a/Kernel/Profiling.h
+++ b/Kernel/Profiling.h
@@ -51,6 +51,7 @@ extern String& executable_path();
Sample& next_sample_slot();
void start(Process&);
void stop();
+void did_exec(const String& new_executable_path);
void for_each_sample(Function<void(Sample&)>);
}