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:
1 parent
c686cf4072
commit
23c7d60f1e
23 files changed
+127
-10
No files matched your search
@@ -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