[gjs: 5/11] profiler: Disable SIGUSR2 start/stop
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs: 5/11] profiler: Disable SIGUSR2 start/stop
- Date: Thu, 25 Jan 2018 01:22:38 +0000 (UTC)
commit a824659f546c5ee97ccb207abeb9e710194fb30c
Author: Philip Chimento <philip endlessm com>
Date: Thu Jan 18 14:28:14 2018 -0800
profiler: Disable SIGUSR2 start/stop
The gjs_profiler_setup_signals() API is still available for code
embedding GJS that wants this, but we want it disabled by default in the
interpreter.
gjs/console.cpp | 15 +++++----------
1 file changed, 5 insertions(+), 10 deletions(-)
---
diff --git a/gjs/console.cpp b/gjs/console.cpp
index 5b1b634..455c29f 100644
--- a/gjs/console.cpp
+++ b/gjs/console.cpp
@@ -317,19 +317,14 @@ main(int argc, char **argv)
if (interactive_mode && enable_profiler) {
g_message("Profiler disabled in interactive mode.");
- } else if (!interactive_mode) {
+ } else if (enable_profiler) {
profiler = gjs_profiler_new(js_context);
- /* Allow SIGUSR2 (with sigaction param) to enable/disable */
- gjs_profiler_setup_signals();
-
- if (enable_profiler) {
- if (profile_output_path) {
- gjs_profiler_set_filename(profiler, profile_output_path);
- g_free(profile_output_path);
- }
- gjs_profiler_start(profiler);
+ if (profile_output_path) {
+ gjs_profiler_set_filename(profiler, profile_output_path);
+ g_free(profile_output_path);
}
+ gjs_profiler_start(profiler);
}
/* prepare command line arguments */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]