zed/docs/src
Kirill Bulatov fca4d60ce1
Disable miniprofiler by default (#54645)
Needs https://github.com/zed-industries/zed/pull/54635 for the profile
overrides added into default settings json to work.
Part of https://github.com/zed-industries/zed/issues/48968
Another part of the fix related seems to be
https://github.com/zed-industries/zed/pull/45669 ?

Using the steps from the issue and profiling on macOs had shown that Zed
has 2 memory "leaks" in play when a certain file is being rewritten a
lot of times.

* First, the thread profiler registers a lot of tasks' data and fills
its buffer to the limit:

<img width="3456" height="2158" alt="image"
src="https://github.com/user-attachments/assets/f183312d-4389-4072-8915-d54e60419b08"
/>

* Second, if the buffer gets open, the undo history fragments start to
creep up infinitely:

<img width="3456" height="2158" alt="image"
src="https://github.com/user-attachments/assets/61a2b66b-81fd-4973-9c3c-c339f886d9b2"
/>

The PR aims to solve the first issue by disabling the profiling by
default, yet leaving the way to turn in on quickly with settings.

The memory usage profiling shows that the memory usage is now
dynamically affected by the new setting:

<img width="2032" height="1136" alt="image"
src="https://github.com/user-attachments/assets/8a6c76b9-6fb7-44bc-ac1d-3c34afe7c575"
/>

While the test directory being thrashed with the script from the issue, 
* first, Zed starts with the profiling disabled
* then gets the profiling enabled which results in the memory growth
close to 1 minute mark of the screenshot
* last, the profiling gets disabled again, releasing all the memory
accumulated

Release Notes:

- Improved Zed's default memory usage
2026-04-23 18:41:52 +00:00
..
ai branch_picker: Add button to filter remote branches (#54632) 2026-04-23 18:26:44 +00:00
collaboration docs: Remove Preview callouts for stable release (#50736) 2026-03-04 15:10:13 -05:00
development Removal of mold/wild scripts and mentions in docs (#53078) 2026-04-08 21:20:02 +03:00
extensions language_core: Introduce fallback highlights (#52575) 2026-04-02 12:52:42 +00:00
languages ep: Dont send type definition requests to tombi (#54676) 2026-04-23 17:03:41 +00:00
migrate editor: Add configurable hover delay (#53504) 2026-04-13 09:46:19 +03:00
reference Disable miniprofiler by default (#54645) 2026-04-23 18:41:52 +00:00
all-actions.md docs: Apply documentation standards across all docs (#49177) 2026-02-17 20:58:17 -06:00
appearance.md Add hotkeys and actions for toggle light and dark theme (#49027) 2026-03-12 21:35:42 +02:00
authentication.md docs: Apply documentation standards across all docs (#49177) 2026-02-17 20:58:17 -06:00
command-palette.md docs: Apply documentation standards across all docs (#49177) 2026-02-17 20:58:17 -06:00
completions.md Remove Supermaven-related code from Zed (#50537) 2026-03-02 22:18:49 +00:00
configuring-languages.md Gate Format Selections on whether the active formatter can actually format ranges (#53178) 2026-04-16 09:11:22 +03:00
configuring-zed.md Add vim/emacs modeline support (#49267) 2026-03-25 03:15:51 +00:00
debugger.md docs: Remove Preview callouts for stable release (#50736) 2026-03-04 15:10:13 -05:00
dev-containers.md docs: Add AI SEO frontmatter (#48559) 2026-02-11 13:10:31 -08:00
development.md Improve documentation for ETW profiling (#50426) 2026-02-28 23:03:49 -05:00
diagnostics.md docs: Add AI SEO frontmatter (#48559) 2026-02-11 13:10:31 -08:00
editing-code.md docs: SEO content improvements for AI section (#49128) 2026-02-13 13:05:57 -08:00
environment.md docs: Apply documentation standards across all docs (#49177) 2026-02-17 20:58:17 -06:00
extensions.md Remove text thread and slash command crates (#52757) 2026-03-31 17:55:05 +02:00
finding-navigating.md branch_picker: Add button to filter remote branches (#54632) 2026-04-23 18:26:44 +00:00
getting-started.md docs: Remove Preview callouts for stable release (#50736) 2026-03-04 15:10:13 -05:00
git.md docs: Update File History menu label from Open to View (#49859) 2026-03-01 10:02:33 +00:00
globs.md docs: Remove Preview callouts for stable release (#50119) 2026-02-25 14:16:54 -06:00
helix.md docs: Apply documentation standards across all docs (#49177) 2026-02-17 20:58:17 -06:00
icon-themes.md docs: Apply documentation standards across all docs (#49177) 2026-02-17 20:58:17 -06:00
installation.md docs: Add AI SEO frontmatter (#48559) 2026-02-11 13:10:31 -08:00
key-bindings.md Fix docs validation to detect unknown keys (#49660) 2026-02-19 20:46:21 -05:00
languages.md docs: Apply documentation standards across all docs (#49177) 2026-02-17 20:58:17 -06:00
linux.md Deprioritize Flathub (#53857) 2026-04-14 20:42:16 -06:00
macos.md docs: Apply documentation standards across all docs (#49177) 2026-02-17 20:58:17 -06:00
modelines.md Add vim/emacs modeline support (#49267) 2026-03-25 03:15:51 +00:00
multibuffers.md docs: Add AI SEO frontmatter (#48559) 2026-02-11 13:10:31 -08:00
outline-panel.md docs: Remove Preview callouts for stable release (#50736) 2026-03-04 15:10:13 -05:00
performance.md docs: Center and re-flow perf images (#53004) 2026-04-02 10:24:43 -06:00
quick-start.md docs: Reorganize introduction (#41387) 2025-10-28 17:39:40 -03:00
remote-development.md docs: Apply documentation standards across all docs (#49177) 2026-02-17 20:58:17 -06:00
repl.md docs: Remove Preview callouts for stable release (#50119) 2026-02-25 14:16:54 -06:00
roles.md docs: Add roles page under Account & Privacy section (#51413) 2026-03-13 10:48:54 -07:00
running-testing.md docs: Apply documentation standards across all docs (#49177) 2026-02-17 20:58:17 -06:00
semantic-tokens.md extension_host: Allow extensions to define semantic highlighting rules (#49282) 2026-03-02 17:54:53 +01:00
snippets.md docs: Remove outdated reference to simple-completion-language-server (#50732) 2026-03-04 18:45:52 +00:00
SUMMARY.md branch_picker: Add button to filter remote branches (#54632) 2026-04-23 18:26:44 +00:00
tab-switcher.md docs: Apply documentation standards across all docs (#49177) 2026-02-17 20:58:17 -06:00
tasks.md Add Parallel Agents documentation (#53535) 2026-04-22 13:28:41 -03:00
telemetry.md Docs/privacy documentation refresh (#50522) 2026-03-02 11:21:07 -08:00
terminal.md docs: SEO content improvements for AI section (#49128) 2026-02-13 13:05:57 -08:00
themes.md Add hotkeys and actions for toggle light and dark theme (#49027) 2026-03-12 21:35:42 +02:00
toolchains.md docs: Apply documentation standards across all docs (#49177) 2026-02-17 20:58:17 -06:00
troubleshooting.md feedback: Add action for listing installed extensions (#48664) 2026-04-16 07:45:38 +00:00
uninstall.md docs: Update guide to remove user data on macOS when uninstalling Zed (#52631) 2026-03-31 05:35:04 +00:00
update.md docs: Apply documentation standards across all docs (#49177) 2026-02-17 20:58:17 -06:00
vim.md docs: Improve vim mode's command mnemonics section (#52892) 2026-04-22 12:07:40 +00:00
visual-customization.md Move the worktree picker to the title bar + make it always visible (#54183) 2026-04-20 09:29:51 +00:00
windows.md docs: Apply documentation standards across all docs (#49177) 2026-02-17 20:58:17 -06:00
worktree-trust.md docs: Apply documentation standards across all docs (#49177) 2026-02-17 20:58:17 -06:00