mirror of
https://github.com/zed-industries/zed.git
synced 2026-11-20 23:50:25 +01:00
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:
@@ -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>>,
|
||||
|
||||
Reference in New Issue
Block a user