ztracing: Enable memory profiling and callstack sampling (#47052)

While at it, annotate more functions that are potentially related to
language parsing in buffers.

Also, on macOS, in order to actually have callstack frames properly
recorded by Tracy, you need to manually run `dsymutil` on the binary.

Release Notes:

- N/A
This commit is contained in:
Jakub Konka
2026-01-17 20:29:19 +01:00
committed by GitHub
parent 4064af3458
commit 7ce845210d
23 changed files with 127 additions and 10 deletions
+2
View File
@@ -216,6 +216,7 @@ impl BufferDiffSnapshot {
self.secondary_diff.as_deref()
}
#[ztracing::instrument(skip_all)]
pub fn hunks_intersecting_range<'a>(
&'a self,
range: Range<Anchor>,
@@ -1279,6 +1280,7 @@ impl BufferDiff {
})
}
#[ztracing::instrument(skip_all)]
pub fn language_changed(
&mut self,
language: Option<Arc<Language>>,