From 561ff979d574f496415c0499345d41da2e1f6e1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20d=27Herbais=20de=20Thun?= Date: Sun, 23 Apr 2023 14:33:56 +0200 Subject: Add instrumentation (Part 1) (#761) --- src/syntax/node.rs | 1 + src/syntax/source.rs | 1 + 2 files changed, 2 insertions(+) (limited to 'src/syntax') diff --git a/src/syntax/node.rs b/src/syntax/node.rs index 3c9bc049..d2adc13a 100644 --- a/src/syntax/node.rs +++ b/src/syntax/node.rs @@ -190,6 +190,7 @@ impl SyntaxNode { } /// Assign spans to each node. + #[tracing::instrument(skip_all)] pub(super) fn numberize( &mut self, id: SourceId, diff --git a/src/syntax/source.rs b/src/syntax/source.rs index a51da301..2a474b17 100644 --- a/src/syntax/source.rs +++ b/src/syntax/source.rs @@ -28,6 +28,7 @@ pub struct Source { impl Source { /// Create a new source file. + #[tracing::instrument(skip_all)] pub fn new(id: SourceId, path: &Path, text: String) -> Self { let mut root = parse(&text); root.numberize(id, Span::FULL).unwrap(); -- cgit v1.2.3