summaryrefslogtreecommitdiffstats
path: root/daemon/static_threads.c
diff options
context:
space:
mode:
Diffstat (limited to 'daemon/static_threads.c')
-rw-r--r--daemon/static_threads.c16
1 files changed, 13 insertions, 3 deletions
diff --git a/daemon/static_threads.c b/daemon/static_threads.c
index fe83945cf..4ee2a4668 100644
--- a/daemon/static_threads.c
+++ b/daemon/static_threads.c
@@ -13,6 +13,7 @@ void *pluginsd_main(void *ptr);
void *service_main(void *ptr);
void *statsd_main(void *ptr);
void *timex_main(void *ptr);
+void *profile_main(void *ptr);
void *replication_thread_main(void *ptr __maybe_unused);
extern bool global_statistics_enabled;
@@ -142,15 +143,15 @@ const struct netdata_static_thread static_threads_common[] = {
.start_routine = socket_listen_main_static_threaded
},
-#ifdef ENABLE_HTTPD
+#ifdef ENABLE_H2O
{
- .name = "httpd",
+ .name = "h2o",
.config_section = NULL,
.config_name = NULL,
.enabled = 0,
.thread = NULL,
.init_routine = NULL,
- .start_routine = httpd_main
+ .start_routine = h2o_main
},
#endif
@@ -185,6 +186,15 @@ const struct netdata_static_thread static_threads_common[] = {
.init_routine = NULL,
.start_routine = replication_thread_main
},
+ {
+ .name = "P[PROFILE]",
+ .config_section = CONFIG_SECTION_PLUGINS,
+ .config_name = "profile",
+ .enabled = 0,
+ .thread = NULL,
+ .init_routine = NULL,
+ .start_routine = profile_main
+ },
// terminator
{