From 1cbb49864c32feae332c082f7f10aa0ab17750bc Mon Sep 17 00:00:00 2001 From: David Kleingeld Date: Tue, 25 Nov 2025 16:01:38 +0100 Subject: [PATCH] document how to do flamecharts in an easy way (#43461) Release Notes: - N/A --- docs/src/performance.md | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/docs/src/performance.md b/docs/src/performance.md index bcd9da1a59..9dff1d7f5f 100644 --- a/docs/src/performance.md +++ b/docs/src/performance.md @@ -1,10 +1,19 @@ How to use our internal tools to profile and keep Zed fast. -# Tracy +# Flamechart/CPU profiling -Get a profile of the zed foreground executor +See what the CPU spends the most time on. Strongly recommend you use +[samply](https://github.com/mstange/samply). It opens an interactive profile in +the browser. See its README on how to install and run. -The profiler always runs in the background. You can save a trace from its UI or look at the results live. +# Task/Async profiling + +Get a profile of the zed foreground executor and background executors. Check if +anything is blocking the foreground too long or taking too much (clock) time in +the background. + +The profiler always runs in the background. You can save a trace from its UI or +look at the results live. ## Setup/Building the importer: