From 641cf65c4218d632cf17ac155eb91e65cfb9ff17 Mon Sep 17 00:00:00 2001 From: Yuhao Su <31772373+yuhao-su@users.noreply.github.com> Date: Wed, 27 Nov 2024 01:39:03 +0800 Subject: [PATCH] fix: add RW_HEAP_PROFILING_DIR for frontend (#19323) --- src/frontend/src/lib.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/frontend/src/lib.rs b/src/frontend/src/lib.rs index 6424da42a1510..986d4cfb35660 100644 --- a/src/frontend/src/lib.rs +++ b/src/frontend/src/lib.rs @@ -149,6 +149,11 @@ pub struct FrontendOpts { #[override_opts(path = server.metrics_level)] pub metrics_level: Option, + /// Enable heap profile dump when memory usage is high. + #[clap(long, hide = true, env = "RW_HEAP_PROFILING_DIR")] + #[override_opts(path = server.heap_profiling.dir)] + pub heap_profiling_dir: Option, + #[clap(long, hide = true, env = "ENABLE_BARRIER_READ")] #[override_opts(path = batch.enable_barrier_read)] pub enable_barrier_read: Option,