Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Change miniprofiler file extension to `.miniprof.json` (#50429)
Kunall Banerjee9a6046cc57cf
diff --git a/crates/miniprofiler_ui/src/miniprofiler_ui.rs b/crates/miniprofiler_ui/src/miniprofiler_ui.rsindex 1f95dc3d230..12b2bce77b5 100644--- a/crates/miniprofiler_ui/src/miniprofiler_ui.rs+++ b/crates/miniprofiler_ui/src/miniprofiler_ui.rs@@ -544,7 +544,7 @@ impl Render for ProfilerWindow {let path = cx.prompt_for_new_path(&active_path,- Some("performance_profile.miniprof"),+ Some("performance_profile.miniprof.json"),);cx.background_spawn(async move {diff --git a/crates/zed/src/reliability.rs b/crates/zed/src/reliability.rsindex b291b9c8493..d8dc1c4f8fe 100644--- a/crates/zed/src/reliability.rs+++ b/crates/zed/src/reliability.rs@@ -144,7 +144,7 @@ fn cleanup_old_hang_traces() {entry.path().extension()- .is_some_and(|ext| ext == "miniprof")+ .is_some_and(|ext| ext == "json" || ext == "miniprof")}).collect();@@ -175,7 +175,7 @@ fn save_hang_trace(.collect::<Vec<_>>();let trace_path = paths::hang_traces_dir().join(&format!(- "hang-{}.miniprof",+ "hang-{}.miniprof.json",hang_time.format("%Y-%m-%d_%H-%M-%S")));@@ -193,7 +193,7 @@ fn save_hang_trace(entry.path().extension()- .is_some_and(|ext| ext == "miniprof")+ .is_some_and(|ext| ext == "json" || ext == "miniprof")}).collect();diff --git a/docs/src/performance.md b/docs/src/performance.mdindex 09abecdeffe..e974d63f881 100644--- a/docs/src/performance.md+++ b/docs/src/performance.md@@ -78,7 +78,7 @@ Download the importer- `cd import && mkdir build && cd build`- Run cmake to generate build files: `cmake -G Ninja -DCMAKE_BUILD_TYPE=Release ..`- Build the importer: `ninja`-- Run the importer on the trace file: `./tracy-import-miniprofiler /path/to/trace.miniprof /path/to/output.tracy`+- Run the importer on the trace file: `./tracy-import-miniprofiler /path/to/trace.miniprof.json /path/to/output.tracy`- Open the trace in tracy:- If you're on windows download the v0.12.2 version from the releases on the upstream repo- If you're on other platforms open it on the website: https://tracy.nereid.pl/ (the version might mismatch so your luck might vary, we need to host our own ideally..)@@ -87,7 +87,7 @@ Download the importer- Run the action: `zed open performance profiler`- Hit the save button. This opens a save dialog or if that fails to open the trace gets saved in your working directory.-- Convert the profile so it can be imported in tracy using the importer: `./tracy-import-miniprofiler <path to performance_profile.miniprof> output.tracy`+- Convert the profile so it can be imported in tracy using the importer: `./tracy-import-miniprofiler <path to performance_profile.miniprof.json> output.tracy`- Go to <https://tracy.nereid.pl/> hit the 'power button' in the top left and then open saved trace.- Now zoom in to see the tasks and how long they took