diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2025-04-12 09:41:19 -0700 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2025-04-12 09:41:19 -0700 |
commit | 7d35376483a1e15b3da4300720a83a1213587d64 (patch) | |
tree | eb6bd13f53c4b16870f3aa9530a6eae349c1215c | |
parent | e207e3b332c3e006808226679e165e04bbaf63e3 (diff) |
vmon: wire up --no-threads to the charts flag
Still no actual implementation yet
-rw-r--r-- | src/vmon.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -599,6 +599,7 @@ int vmon_execv(vmon_t *vmon) /* parse argv, init charts/vcr_backend/vcr_dest, attach libvmon to monitored process via vwm_chart_create() */ static vmon_t * vmon_startup(int argc, const char * const *argv) { + unsigned charts_flags = VWM_CHARTS_FLAG_DEFER_MAINTENANCE; vcr_backend_type_t backend_type; vmon_t *vmon; @@ -642,7 +643,10 @@ static vmon_t * vmon_startup(int argc, const char * const *argv) goto _err_free; } - vmon->charts = vwm_charts_create(vmon->vcr_backend, VWM_CHARTS_FLAG_DEFER_MAINTENANCE); + if (vmon->no_threads) + charts_flags |= VWM_CHARTS_NO_THREADS; + + vmon->charts = vwm_charts_create(vmon->vcr_backend, charts_flags); if (!vmon->charts) { VWM_ERROR("unable to create charts instance"); goto _err_vcr; |