summaryrefslogtreecommitdiff
path: root/cli/Cargo.toml
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2024-10-16 10:03:42 -0400
committerGitHub <noreply@github.com>2024-10-16 14:03:42 +0000
commitf94cdd1723ebfed265c17fb4def13c9ce17c3e06 (patch)
tree8943e454b644f0496a08fb0eba660ee882327cba /cli/Cargo.toml
parent19cb0d949a147097fbc03a95a07bd6bf8f7b9571 (diff)
chore: add dhat feature (#26285)
Diffstat (limited to 'cli/Cargo.toml')
-rw-r--r--cli/Cargo.toml6
1 files changed, 6 insertions, 0 deletions
diff --git a/cli/Cargo.toml b/cli/Cargo.toml
index f1a8ca0a2..837f98f5b 100644
--- a/cli/Cargo.toml
+++ b/cli/Cargo.toml
@@ -38,6 +38,11 @@ path = "./bench/lsp_bench_standalone.rs"
[features]
default = ["upgrade", "__vendored_zlib_ng"]
+# A feature that enables heap profiling with dhat on Linux.
+# 1. Compile with `cargo build --profile=release-with-debug --features=dhat-heap`
+# 2. Run the executable. It will output a dhat-heap.json file.
+# 3. Open the json file in https://nnethercote.github.io/dh_view/dh_view.html
+dhat-heap = ["dhat"]
# A feature that enables the upgrade subcommand and the background check for
# available updates (of deno binary). This is typically disabled for (Linux)
# distribution packages.
@@ -98,6 +103,7 @@ color-print.workspace = true
console_static_text.workspace = true
dashmap.workspace = true
data-encoding.workspace = true
+dhat = { version = "0.3.3", optional = true }
dissimilar = "=1.0.4"
dotenvy = "0.15.7"
dprint-plugin-json = "=0.19.3"