diff --git a/crates/tracedecay-code-extraction/src/astro_extractor.rs b/crates/tracedecay-code-extraction/src/astro_extractor.rs index 893ae80fa7..f3e8d3ed39 100644 --- a/crates/tracedecay-code-extraction/src/astro_extractor.rs +++ b/crates/tracedecay-code-extraction/src/astro_extractor.rs @@ -86,6 +86,7 @@ impl LanguageExtractor for AstroExtractor { crate::hotpath_observe::measure_language(|| Cow::Owned(Self::mask_non_frontmatter(source))) } + #[hotpath::measure(label = "code_extraction.astro.extract")] fn extract(&self, file_path: &str, source: &str) -> ExtractionResult { Self::extract_astro(file_path, source) } @@ -102,6 +103,7 @@ impl LanguageExtractor for AstroExtractor { ) } + #[hotpath::measure(label = "code_extraction.astro.extract_parsed")] fn extract_parsed( &self, file_path: &str, diff --git a/crates/tracedecay-code-extraction/src/bash_extractor.rs b/crates/tracedecay-code-extraction/src/bash_extractor.rs index 19f46c2716..4bc465bd10 100644 --- a/crates/tracedecay-code-extraction/src/bash_extractor.rs +++ b/crates/tracedecay-code-extraction/src/bash_extractor.rs @@ -94,6 +94,7 @@ impl BashExtractor { .result } + #[hotpath::measure(label = "code_extraction.bash.extract_tree")] fn extract_tree( file_path: &str, source: &str, @@ -146,6 +147,7 @@ impl BashExtractor { } /// Parse source code into a tree-sitter AST. + #[hotpath::measure(label = "code_extraction.bash.parse_source")] fn parse_source(source: &str) -> Result { crate::ts_provider::parse_extractor_source("bash", "Bash", source) } @@ -431,10 +433,12 @@ impl crate::LanguageExtractor for BashExtractor { "Bash" } + #[hotpath::measure(label = "code_extraction.bash.extract")] fn extract(&self, file_path: &str, source: &str) -> ExtractionResult { Self::extract_bash(file_path, source) } + #[hotpath::measure(label = "code_extraction.bash.extract_parsed")] fn extract_parsed( &self, file_path: &str, diff --git a/crates/tracedecay-code-extraction/src/batch_extractor.rs b/crates/tracedecay-code-extraction/src/batch_extractor.rs index 2fda806d80..88c8007456 100644 --- a/crates/tracedecay-code-extraction/src/batch_extractor.rs +++ b/crates/tracedecay-code-extraction/src/batch_extractor.rs @@ -112,6 +112,7 @@ impl BatchExtractor { .result } + #[hotpath::measure(label = "code_extraction.batch.extract_tree")] fn extract_tree( file_path: &str, source: &str, @@ -165,6 +166,7 @@ impl BatchExtractor { } /// Parse source code into a tree-sitter AST. + #[hotpath::measure(label = "code_extraction.batch.parse_source")] fn parse_source(source: &str) -> Result { crate::ts_provider::parse_extractor_source("batch", "Batch", source) } @@ -480,10 +482,12 @@ impl crate::LanguageExtractor for BatchExtractor { "Batch" } + #[hotpath::measure(label = "code_extraction.batch.extract")] fn extract(&self, file_path: &str, source: &str) -> ExtractionResult { Self::extract_batch(file_path, source) } + #[hotpath::measure(label = "code_extraction.batch.extract_parsed")] fn extract_parsed( &self, file_path: &str, diff --git a/crates/tracedecay-code-extraction/src/c_extractor.rs b/crates/tracedecay-code-extraction/src/c_extractor.rs index af6e8d1b41..b21524e200 100644 --- a/crates/tracedecay-code-extraction/src/c_extractor.rs +++ b/crates/tracedecay-code-extraction/src/c_extractor.rs @@ -123,6 +123,7 @@ impl CExtractor { .result } + #[hotpath::measure(label = "code_extraction.c.extract_tree")] fn extract_tree( file_path: &str, source: &str, @@ -175,6 +176,7 @@ impl CExtractor { } /// Parse source code into a tree-sitter AST. + #[hotpath::measure(label = "code_extraction.c.parse_source")] fn parse_source(source: &str) -> Result { crate::ts_provider::parse_extractor_source("c", "C", source) } @@ -1400,10 +1402,12 @@ impl crate::LanguageExtractor for CExtractor { "C" } + #[hotpath::measure(label = "code_extraction.c.extract")] fn extract(&self, file_path: &str, source: &str) -> ExtractionResult { CExtractor::extract_source(file_path, source) } + #[hotpath::measure(label = "code_extraction.c.extract_parsed")] fn extract_parsed( &self, file_path: &str, diff --git a/crates/tracedecay-code-extraction/src/clojure_extractor.rs b/crates/tracedecay-code-extraction/src/clojure_extractor.rs index fc409c9008..aa0e2f5e5a 100644 --- a/crates/tracedecay-code-extraction/src/clojure_extractor.rs +++ b/crates/tracedecay-code-extraction/src/clojure_extractor.rs @@ -82,6 +82,7 @@ impl ClojureExtractor { .result } + #[hotpath::measure(label = "code_extraction.clojure.extract_tree")] fn extract_tree( file_path: &str, source: &str, @@ -133,6 +134,7 @@ impl ClojureExtractor { ) } + #[hotpath::measure(label = "code_extraction.clojure.parse_source")] fn parse_source(source: &str) -> Result { crate::ts_provider::parse_extractor_source("clojure", "Clojure", source) } @@ -537,10 +539,12 @@ impl crate::LanguageExtractor for ClojureExtractor { "Clojure" } + #[hotpath::measure(label = "code_extraction.clojure.extract")] fn extract(&self, file_path: &str, source: &str) -> ExtractionResult { Self::extract_clojure(file_path, source) } + #[hotpath::measure(label = "code_extraction.clojure.extract_parsed")] fn extract_parsed( &self, file_path: &str, diff --git a/crates/tracedecay-code-extraction/src/cobol_extractor.rs b/crates/tracedecay-code-extraction/src/cobol_extractor.rs index a7fc4d499b..0359f203dc 100644 --- a/crates/tracedecay-code-extraction/src/cobol_extractor.rs +++ b/crates/tracedecay-code-extraction/src/cobol_extractor.rs @@ -112,6 +112,7 @@ impl CobolExtractor { .result } + #[hotpath::measure(label = "code_extraction.cobol.extract_tree")] fn extract_tree( file_path: &str, source: &str, @@ -164,6 +165,7 @@ impl CobolExtractor { } /// Parse source code into a tree-sitter AST. + #[hotpath::measure(label = "code_extraction.cobol.parse_source")] fn parse_source(source: &str) -> Result { crate::ts_provider::parse_extractor_source("cobol", "COBOL", source) } @@ -652,10 +654,12 @@ impl crate::LanguageExtractor for CobolExtractor { "COBOL" } + #[hotpath::measure(label = "code_extraction.cobol.extract")] fn extract(&self, file_path: &str, source: &str) -> ExtractionResult { Self::extract_cobol(file_path, source) } + #[hotpath::measure(label = "code_extraction.cobol.extract_parsed")] fn extract_parsed( &self, file_path: &str, diff --git a/crates/tracedecay-code-extraction/src/cpp_extractor.rs b/crates/tracedecay-code-extraction/src/cpp_extractor.rs index 21f32d8bb6..b62d82a03c 100644 --- a/crates/tracedecay-code-extraction/src/cpp_extractor.rs +++ b/crates/tracedecay-code-extraction/src/cpp_extractor.rs @@ -136,6 +136,7 @@ impl CppExtractor { .result } + #[hotpath::measure(label = "code_extraction.cpp.extract_tree")] fn extract_tree( file_path: &str, source: &str, @@ -188,6 +189,7 @@ impl CppExtractor { } /// Parse source code into a tree-sitter AST. + #[hotpath::measure(label = "code_extraction.cpp.parse_source")] fn parse_source(source: &str) -> Result { crate::ts_provider::parse_extractor_source("cpp", "C++", source) } @@ -600,10 +602,12 @@ impl crate::LanguageExtractor for CppExtractor { "C++" } + #[hotpath::measure(label = "code_extraction.cpp.extract")] fn extract(&self, file_path: &str, source: &str) -> ExtractionResult { CppExtractor::extract_source(file_path, source) } + #[hotpath::measure(label = "code_extraction.cpp.extract_parsed")] fn extract_parsed( &self, file_path: &str, diff --git a/crates/tracedecay-code-extraction/src/csharp_extractor.rs b/crates/tracedecay-code-extraction/src/csharp_extractor.rs index fa9291e0a1..ff3b391af0 100644 --- a/crates/tracedecay-code-extraction/src/csharp_extractor.rs +++ b/crates/tracedecay-code-extraction/src/csharp_extractor.rs @@ -95,6 +95,7 @@ impl CSharpExtractor { .result } + #[hotpath::measure(label = "code_extraction.csharp.extract_tree")] fn extract_tree( file_path: &str, source: &str, @@ -147,6 +148,7 @@ impl CSharpExtractor { } /// Parse source code into a tree-sitter AST. + #[hotpath::measure(label = "code_extraction.csharp.parse_source")] fn parse_source(source: &str) -> Result { crate::ts_provider::parse_extractor_source("c_sharp", "C#", source) } @@ -1703,10 +1705,12 @@ impl crate::LanguageExtractor for CSharpExtractor { "C#" } + #[hotpath::measure(label = "code_extraction.csharp.extract")] fn extract(&self, file_path: &str, source: &str) -> ExtractionResult { CSharpExtractor::extract_csharp(file_path, source) } + #[hotpath::measure(label = "code_extraction.csharp.extract_parsed")] fn extract_parsed( &self, file_path: &str, diff --git a/crates/tracedecay-code-extraction/src/dart_extractor.rs b/crates/tracedecay-code-extraction/src/dart_extractor.rs index d4faade63f..9c3cecd052 100644 --- a/crates/tracedecay-code-extraction/src/dart_extractor.rs +++ b/crates/tracedecay-code-extraction/src/dart_extractor.rs @@ -107,6 +107,7 @@ impl DartExtractor { .result } + #[hotpath::measure(label = "code_extraction.dart.extract_tree")] fn extract_tree( file_path: &str, source: &str, @@ -159,6 +160,7 @@ impl DartExtractor { } /// Parse source code into a tree-sitter AST. + #[hotpath::measure(label = "code_extraction.dart.parse_source")] fn parse_source(source: &str) -> Result { crate::ts_provider::parse_extractor_source("dart", "Dart", source) } @@ -1865,10 +1867,12 @@ impl crate::LanguageExtractor for DartExtractor { "Dart" } + #[hotpath::measure(label = "code_extraction.dart.extract")] fn extract(&self, file_path: &str, source: &str) -> ExtractionResult { DartExtractor::extract_dart(file_path, source) } + #[hotpath::measure(label = "code_extraction.dart.extract_parsed")] fn extract_parsed( &self, file_path: &str, diff --git a/crates/tracedecay-code-extraction/src/dockerfile_extractor.rs b/crates/tracedecay-code-extraction/src/dockerfile_extractor.rs index 650e481ff7..4877552039 100644 --- a/crates/tracedecay-code-extraction/src/dockerfile_extractor.rs +++ b/crates/tracedecay-code-extraction/src/dockerfile_extractor.rs @@ -106,6 +106,7 @@ impl DockerfileExtractor { .result } + #[hotpath::measure(label = "code_extraction.dockerfile.extract_tree")] fn extract_tree( file_path: &str, source: &str, @@ -158,6 +159,7 @@ impl DockerfileExtractor { } /// Parse source code into a tree-sitter AST. + #[hotpath::measure(label = "code_extraction.dockerfile.parse_source")] fn parse_source(source: &str) -> Result { crate::ts_provider::parse_extractor_source("dockerfile", "Dockerfile", source) } @@ -644,10 +646,12 @@ impl crate::LanguageExtractor for DockerfileExtractor { "Dockerfile" } + #[hotpath::measure(label = "code_extraction.dockerfile.extract")] fn extract(&self, file_path: &str, source: &str) -> ExtractionResult { Self::extract_dockerfile(file_path, source) } + #[hotpath::measure(label = "code_extraction.dockerfile.extract_parsed")] fn extract_parsed( &self, file_path: &str, diff --git a/crates/tracedecay-code-extraction/src/elixir_extractor.rs b/crates/tracedecay-code-extraction/src/elixir_extractor.rs index 77ba87cc9b..0871eff0c3 100644 --- a/crates/tracedecay-code-extraction/src/elixir_extractor.rs +++ b/crates/tracedecay-code-extraction/src/elixir_extractor.rs @@ -82,6 +82,7 @@ impl ElixirExtractor { .result } + #[hotpath::measure(label = "code_extraction.elixir.extract_tree")] fn extract_tree( file_path: &str, source: &str, @@ -133,6 +134,7 @@ impl ElixirExtractor { ) } + #[hotpath::measure(label = "code_extraction.elixir.parse_source")] fn parse_source(source: &str) -> Result { crate::ts_provider::parse_extractor_source("elixir", "Elixir", source) } @@ -569,10 +571,12 @@ impl crate::LanguageExtractor for ElixirExtractor { "Elixir" } + #[hotpath::measure(label = "code_extraction.elixir.extract")] fn extract(&self, file_path: &str, source: &str) -> ExtractionResult { Self::extract_elixir(file_path, source) } + #[hotpath::measure(label = "code_extraction.elixir.extract_parsed")] fn extract_parsed( &self, file_path: &str, diff --git a/crates/tracedecay-code-extraction/src/erlang_extractor.rs b/crates/tracedecay-code-extraction/src/erlang_extractor.rs index 5752238d6e..48c54fd42e 100644 --- a/crates/tracedecay-code-extraction/src/erlang_extractor.rs +++ b/crates/tracedecay-code-extraction/src/erlang_extractor.rs @@ -65,6 +65,7 @@ impl ErlangExtractor { .result } + #[hotpath::measure(label = "code_extraction.erlang.extract_tree")] fn extract_tree( file_path: &str, source: &str, @@ -112,6 +113,7 @@ impl ErlangExtractor { ) } + #[hotpath::measure(label = "code_extraction.erlang.parse_source")] fn parse_source(source: &str) -> Result { crate::ts_provider::parse_extractor_source("erlang", "Erlang", source) } @@ -434,10 +436,12 @@ impl crate::LanguageExtractor for ErlangExtractor { "Erlang" } + #[hotpath::measure(label = "code_extraction.erlang.extract")] fn extract(&self, file_path: &str, source: &str) -> ExtractionResult { Self::extract_erlang(file_path, source) } + #[hotpath::measure(label = "code_extraction.erlang.extract_parsed")] fn extract_parsed( &self, file_path: &str, diff --git a/crates/tracedecay-code-extraction/src/fortran_extractor.rs b/crates/tracedecay-code-extraction/src/fortran_extractor.rs index 24be60d3cf..4003faf527 100644 --- a/crates/tracedecay-code-extraction/src/fortran_extractor.rs +++ b/crates/tracedecay-code-extraction/src/fortran_extractor.rs @@ -93,6 +93,7 @@ impl FortranExtractor { .result } + #[hotpath::measure(label = "code_extraction.fortran.extract_tree")] fn extract_tree( file_path: &str, source: &str, @@ -145,6 +146,7 @@ impl FortranExtractor { } /// Parse source code into a tree-sitter AST. + #[hotpath::measure(label = "code_extraction.fortran.parse_source")] fn parse_source(source: &str) -> Result { crate::ts_provider::parse_extractor_source("fortran", "Fortran", source) } @@ -900,10 +902,12 @@ impl crate::LanguageExtractor for FortranExtractor { "Fortran" } + #[hotpath::measure(label = "code_extraction.fortran.extract")] fn extract(&self, file_path: &str, source: &str) -> ExtractionResult { Self::extract_fortran(file_path, source) } + #[hotpath::measure(label = "code_extraction.fortran.extract_parsed")] fn extract_parsed( &self, file_path: &str, diff --git a/crates/tracedecay-code-extraction/src/fsharp_extractor.rs b/crates/tracedecay-code-extraction/src/fsharp_extractor.rs index d17decd043..bda7cada5f 100644 --- a/crates/tracedecay-code-extraction/src/fsharp_extractor.rs +++ b/crates/tracedecay-code-extraction/src/fsharp_extractor.rs @@ -83,6 +83,7 @@ impl FSharpExtractor { .result } + #[hotpath::measure(label = "code_extraction.fsharp.extract_tree")] fn extract_tree( file_path: &str, source: &str, @@ -134,6 +135,7 @@ impl FSharpExtractor { ) } + #[hotpath::measure(label = "code_extraction.fsharp.parse_source")] fn parse_source(source: &str) -> Result { crate::ts_provider::parse_extractor_source("fsharp", "F#", source) } @@ -547,10 +549,12 @@ impl crate::LanguageExtractor for FSharpExtractor { "F#" } + #[hotpath::measure(label = "code_extraction.fsharp.extract")] fn extract(&self, file_path: &str, source: &str) -> ExtractionResult { Self::extract_fsharp(file_path, source) } + #[hotpath::measure(label = "code_extraction.fsharp.extract_parsed")] fn extract_parsed( &self, file_path: &str, diff --git a/crates/tracedecay-code-extraction/src/glsl_extractor.rs b/crates/tracedecay-code-extraction/src/glsl_extractor.rs index d62db2c1c6..6380fd5b52 100644 --- a/crates/tracedecay-code-extraction/src/glsl_extractor.rs +++ b/crates/tracedecay-code-extraction/src/glsl_extractor.rs @@ -94,6 +94,7 @@ impl GlslExtractor { .result } + #[hotpath::measure(label = "code_extraction.glsl.extract_tree")] fn extract_tree( file_path: &str, source: &str, @@ -145,6 +146,7 @@ impl GlslExtractor { ) } + #[hotpath::measure(label = "code_extraction.glsl.parse_source")] fn parse_source(source: &str) -> Result { crate::ts_provider::parse_extractor_source("glsl", "GLSL", source) } @@ -684,10 +686,12 @@ impl crate::LanguageExtractor for GlslExtractor { "GLSL" } + #[hotpath::measure(label = "code_extraction.glsl.extract")] fn extract(&self, file_path: &str, source: &str) -> ExtractionResult { GlslExtractor::extract_source(file_path, source) } + #[hotpath::measure(label = "code_extraction.glsl.extract_parsed")] fn extract_parsed( &self, file_path: &str, diff --git a/crates/tracedecay-code-extraction/src/go_extractor.rs b/crates/tracedecay-code-extraction/src/go_extractor.rs index 7066a96ef8..0e538bf05e 100644 --- a/crates/tracedecay-code-extraction/src/go_extractor.rs +++ b/crates/tracedecay-code-extraction/src/go_extractor.rs @@ -94,6 +94,7 @@ impl GoExtractor { .result } + #[hotpath::measure(label = "code_extraction.go.extract_tree")] fn extract_tree( file_path: &str, source: &str, @@ -146,6 +147,7 @@ impl GoExtractor { } /// Parse source code into a tree-sitter AST. + #[hotpath::measure(label = "code_extraction.go.parse_source")] fn parse_source(source: &str) -> Result { crate::ts_provider::parse_extractor_source("go", "Go", source) } @@ -1204,10 +1206,12 @@ impl crate::LanguageExtractor for GoExtractor { "Go" } + #[hotpath::measure(label = "code_extraction.go.extract")] fn extract(&self, file_path: &str, source: &str) -> ExtractionResult { GoExtractor::extract_source(file_path, source) } + #[hotpath::measure(label = "code_extraction.go.extract_parsed")] fn extract_parsed( &self, file_path: &str, diff --git a/crates/tracedecay-code-extraction/src/gwbasic_extractor.rs b/crates/tracedecay-code-extraction/src/gwbasic_extractor.rs index 8ec16909a7..b134c256c8 100644 --- a/crates/tracedecay-code-extraction/src/gwbasic_extractor.rs +++ b/crates/tracedecay-code-extraction/src/gwbasic_extractor.rs @@ -99,6 +99,7 @@ impl GwBasicExtractor { .result } + #[hotpath::measure(label = "code_extraction.gwbasic.extract_tree")] fn extract_tree( file_path: &str, source: &str, @@ -167,6 +168,7 @@ impl GwBasicExtractor { } /// Parse source code into a tree-sitter AST. + #[hotpath::measure(label = "code_extraction.gwbasic.parse_source")] fn parse_source(source: &str) -> Result { crate::ts_provider::parse_extractor_source("gwbasic", "GW-BASIC", source) } @@ -637,10 +639,12 @@ impl crate::LanguageExtractor for GwBasicExtractor { "GW-BASIC" } + #[hotpath::measure(label = "code_extraction.gwbasic.extract")] fn extract(&self, file_path: &str, source: &str) -> ExtractionResult { Self::extract_gwbasic(file_path, source) } + #[hotpath::measure(label = "code_extraction.gwbasic.extract_parsed")] fn extract_parsed( &self, file_path: &str, diff --git a/crates/tracedecay-code-extraction/src/haskell_extractor.rs b/crates/tracedecay-code-extraction/src/haskell_extractor.rs index 6864355120..7cc929b9c9 100644 --- a/crates/tracedecay-code-extraction/src/haskell_extractor.rs +++ b/crates/tracedecay-code-extraction/src/haskell_extractor.rs @@ -110,6 +110,7 @@ impl HaskellExtractor { .result } + #[hotpath::measure(label = "code_extraction.haskell.extract_tree")] fn extract_tree( file_path: &str, source: &str, @@ -157,6 +158,7 @@ impl HaskellExtractor { ) } + #[hotpath::measure(label = "code_extraction.haskell.parse_source")] fn parse_source(source: &str) -> Result { crate::ts_provider::parse_extractor_source("haskell", "Haskell", source) } @@ -371,10 +373,12 @@ impl crate::LanguageExtractor for HaskellExtractor { "Haskell" } + #[hotpath::measure(label = "code_extraction.haskell.extract")] fn extract(&self, file_path: &str, source: &str) -> ExtractionResult { Self::extract_haskell(file_path, source) } + #[hotpath::measure(label = "code_extraction.haskell.extract_parsed")] fn extract_parsed( &self, file_path: &str, diff --git a/crates/tracedecay-code-extraction/src/hlsl_extractor.rs b/crates/tracedecay-code-extraction/src/hlsl_extractor.rs index b31b11d182..4ddaed8b8f 100644 --- a/crates/tracedecay-code-extraction/src/hlsl_extractor.rs +++ b/crates/tracedecay-code-extraction/src/hlsl_extractor.rs @@ -90,6 +90,7 @@ impl HlslExtractor { .result } + #[hotpath::measure(label = "code_extraction.hlsl.extract_tree")] fn extract_tree( file_path: &str, source: &str, @@ -140,6 +141,7 @@ impl HlslExtractor { ) } + #[hotpath::measure(label = "code_extraction.hlsl.parse_source")] fn parse_source(source: &str) -> Result { crate::ts_provider::parse_extractor_source("hlsl", "HLSL", source) } @@ -626,10 +628,12 @@ impl crate::LanguageExtractor for HlslExtractor { "HLSL" } + #[hotpath::measure(label = "code_extraction.hlsl.extract")] fn extract(&self, file_path: &str, source: &str) -> ExtractionResult { HlslExtractor::extract_source(file_path, source) } + #[hotpath::measure(label = "code_extraction.hlsl.extract_parsed")] fn extract_parsed( &self, file_path: &str, diff --git a/crates/tracedecay-code-extraction/src/java_extractor.rs b/crates/tracedecay-code-extraction/src/java_extractor.rs index bfbf9cf494..79a5ac77a4 100644 --- a/crates/tracedecay-code-extraction/src/java_extractor.rs +++ b/crates/tracedecay-code-extraction/src/java_extractor.rs @@ -139,6 +139,7 @@ impl JavaExtractor { .result } + #[hotpath::measure(label = "code_extraction.java.extract_tree")] fn extract_tree( file_path: &str, source: &str, @@ -191,6 +192,7 @@ impl JavaExtractor { } /// Parse source code into a tree-sitter AST. + #[hotpath::measure(label = "code_extraction.java.parse_source")] fn parse_source(source: &str) -> Result { crate::ts_provider::parse_extractor_source("java", "Java", source) } @@ -1437,10 +1439,12 @@ impl crate::LanguageExtractor for JavaExtractor { "Java" } + #[hotpath::measure(label = "code_extraction.java.extract")] fn extract(&self, file_path: &str, source: &str) -> ExtractionResult { JavaExtractor::extract_java(file_path, source) } + #[hotpath::measure(label = "code_extraction.java.extract_parsed")] fn extract_parsed( &self, file_path: &str, diff --git a/crates/tracedecay-code-extraction/src/julia_extractor.rs b/crates/tracedecay-code-extraction/src/julia_extractor.rs index 6b8d214931..a31f7071ce 100644 --- a/crates/tracedecay-code-extraction/src/julia_extractor.rs +++ b/crates/tracedecay-code-extraction/src/julia_extractor.rs @@ -147,6 +147,7 @@ impl JuliaExtractor { .result } + #[hotpath::measure(label = "code_extraction.julia.extract_tree")] fn extract_tree( file_path: &str, source: &str, @@ -198,6 +199,7 @@ impl JuliaExtractor { ) } + #[hotpath::measure(label = "code_extraction.julia.parse_source")] fn parse_source(source: &str) -> Result { crate::ts_provider::parse_extractor_source("julia", "Julia", source) } @@ -449,10 +451,12 @@ impl crate::LanguageExtractor for JuliaExtractor { "Julia" } + #[hotpath::measure(label = "code_extraction.julia.extract")] fn extract(&self, file_path: &str, source: &str) -> ExtractionResult { Self::extract_julia(file_path, source) } + #[hotpath::measure(label = "code_extraction.julia.extract_parsed")] fn extract_parsed( &self, file_path: &str, diff --git a/crates/tracedecay-code-extraction/src/kotlin_extractor.rs b/crates/tracedecay-code-extraction/src/kotlin_extractor.rs index d1a828fe34..322e4b3b0e 100644 --- a/crates/tracedecay-code-extraction/src/kotlin_extractor.rs +++ b/crates/tracedecay-code-extraction/src/kotlin_extractor.rs @@ -144,6 +144,7 @@ impl KotlinExtractor { .result } + #[hotpath::measure(label = "code_extraction.kotlin.extract_tree")] fn extract_tree( file_path: &str, source: &str, @@ -196,6 +197,7 @@ impl KotlinExtractor { } /// Parse source code into a tree-sitter AST. + #[hotpath::measure(label = "code_extraction.kotlin.parse_source")] fn parse_source(source: &str) -> Result { crate::ts_provider::parse_extractor_source("kotlin", "Kotlin", source) } @@ -1582,10 +1584,12 @@ impl crate::LanguageExtractor for KotlinExtractor { "Kotlin" } + #[hotpath::measure(label = "code_extraction.kotlin.extract")] fn extract(&self, file_path: &str, source: &str) -> ExtractionResult { KotlinExtractor::extract_kotlin(file_path, source) } + #[hotpath::measure(label = "code_extraction.kotlin.extract_parsed")] fn extract_parsed( &self, file_path: &str, diff --git a/crates/tracedecay-code-extraction/src/lean_extractor.rs b/crates/tracedecay-code-extraction/src/lean_extractor.rs index e2ae70514f..b8083762ce 100644 --- a/crates/tracedecay-code-extraction/src/lean_extractor.rs +++ b/crates/tracedecay-code-extraction/src/lean_extractor.rs @@ -76,6 +76,7 @@ impl LeanExtractor { .result } + #[hotpath::measure(label = "code_extraction.lean.extract_tree")] fn extract_tree( file_path: &str, source: &str, @@ -363,10 +364,12 @@ impl crate::LanguageExtractor for LeanExtractor { "Lean" } + #[hotpath::measure(label = "code_extraction.lean.extract")] fn extract(&self, file_path: &str, source: &str) -> ExtractionResult { Self::extract_lean(file_path, source) } + #[hotpath::measure(label = "code_extraction.lean.extract_parsed")] fn extract_parsed( &self, file_path: &str, diff --git a/crates/tracedecay-code-extraction/src/lua_extractor.rs b/crates/tracedecay-code-extraction/src/lua_extractor.rs index e104f12ec8..abbdd1cd94 100644 --- a/crates/tracedecay-code-extraction/src/lua_extractor.rs +++ b/crates/tracedecay-code-extraction/src/lua_extractor.rs @@ -93,6 +93,7 @@ impl LuaExtractor { .result } + #[hotpath::measure(label = "code_extraction.lua.extract_tree")] fn extract_tree( file_path: &str, source: &str, @@ -145,6 +146,7 @@ impl LuaExtractor { } /// Parse source code into a tree-sitter AST. + #[hotpath::measure(label = "code_extraction.lua.parse_source")] fn parse_source(source: &str) -> Result { crate::ts_provider::parse_extractor_source("lua", "Lua", source) } @@ -543,10 +545,12 @@ impl crate::LanguageExtractor for LuaExtractor { "Lua" } + #[hotpath::measure(label = "code_extraction.lua.extract")] fn extract(&self, file_path: &str, source: &str) -> ExtractionResult { Self::extract_lua(file_path, source) } + #[hotpath::measure(label = "code_extraction.lua.extract_parsed")] fn extract_parsed( &self, file_path: &str, diff --git a/crates/tracedecay-code-extraction/src/markdown_extractor.rs b/crates/tracedecay-code-extraction/src/markdown_extractor.rs index 30d74e8d6c..7a3935931b 100644 --- a/crates/tracedecay-code-extraction/src/markdown_extractor.rs +++ b/crates/tracedecay-code-extraction/src/markdown_extractor.rs @@ -664,10 +664,12 @@ impl crate::LanguageExtractor for MarkdownExtractor { "Markdown" } + #[hotpath::measure(label = "code_extraction.markdown.extract")] fn extract(&self, file_path: &str, source: &str) -> ExtractionResult { Self::extract_markdown(file_path, source) } + #[hotpath::measure(label = "code_extraction.markdown.extract_parsed")] fn extract_parsed( &self, file_path: &str, diff --git a/crates/tracedecay-code-extraction/src/metal_extractor.rs b/crates/tracedecay-code-extraction/src/metal_extractor.rs index 55d95ab378..b2d5f1c953 100644 --- a/crates/tracedecay-code-extraction/src/metal_extractor.rs +++ b/crates/tracedecay-code-extraction/src/metal_extractor.rs @@ -18,10 +18,12 @@ impl crate::LanguageExtractor for MetalExtractor { "Metal" } + #[hotpath::measure(label = "code_extraction.metal.extract")] fn extract(&self, file_path: &str, source: &str) -> ExtractionResult { CppExtractor::extract_source(file_path, source) } + #[hotpath::measure(label = "code_extraction.metal.extract_parsed")] fn extract_parsed( &self, file_path: &str, diff --git a/crates/tracedecay-code-extraction/src/msbasic2_extractor.rs b/crates/tracedecay-code-extraction/src/msbasic2_extractor.rs index 9a8ab96803..5070a7435b 100644 --- a/crates/tracedecay-code-extraction/src/msbasic2_extractor.rs +++ b/crates/tracedecay-code-extraction/src/msbasic2_extractor.rs @@ -100,6 +100,7 @@ impl MsBasic2Extractor { .result } + #[hotpath::measure(label = "code_extraction.msbasic2.extract_tree")] fn extract_tree( file_path: &str, source: &str, @@ -165,6 +166,7 @@ impl MsBasic2Extractor { } /// Parse source code into a tree-sitter AST. + #[hotpath::measure(label = "code_extraction.msbasic2.parse_source")] fn parse_source(source: &str) -> Result { crate::ts_provider::parse_extractor_source("msbasic2", "MS BASIC 2.0", source) } @@ -542,10 +544,12 @@ impl crate::LanguageExtractor for MsBasic2Extractor { "MS BASIC 2.0" } + #[hotpath::measure(label = "code_extraction.msbasic2.extract")] fn extract(&self, file_path: &str, source: &str) -> ExtractionResult { Self::extract_msbasic2(file_path, source) } + #[hotpath::measure(label = "code_extraction.msbasic2.extract_parsed")] fn extract_parsed( &self, file_path: &str, diff --git a/crates/tracedecay-code-extraction/src/nix_extractor.rs b/crates/tracedecay-code-extraction/src/nix_extractor.rs index d1b7645a71..78dc8c27d5 100644 --- a/crates/tracedecay-code-extraction/src/nix_extractor.rs +++ b/crates/tracedecay-code-extraction/src/nix_extractor.rs @@ -95,6 +95,7 @@ impl NixExtractor { .result } + #[hotpath::measure(label = "code_extraction.nix.extract_tree")] fn extract_tree( file_path: &str, source: &str, @@ -147,6 +148,7 @@ impl NixExtractor { } /// Parse source code into a tree-sitter AST. + #[hotpath::measure(label = "code_extraction.nix.parse_source")] fn parse_source(source: &str) -> Result { crate::ts_provider::parse_extractor_source("nix", "Nix", source) } @@ -1044,10 +1046,12 @@ impl crate::LanguageExtractor for NixExtractor { "Nix" } + #[hotpath::measure(label = "code_extraction.nix.extract")] fn extract(&self, file_path: &str, source: &str) -> ExtractionResult { Self::extract_nix(file_path, source) } + #[hotpath::measure(label = "code_extraction.nix.extract_parsed")] fn extract_parsed( &self, file_path: &str, diff --git a/crates/tracedecay-code-extraction/src/objc_extractor.rs b/crates/tracedecay-code-extraction/src/objc_extractor.rs index e0a1c78016..b0ed93f6bd 100644 --- a/crates/tracedecay-code-extraction/src/objc_extractor.rs +++ b/crates/tracedecay-code-extraction/src/objc_extractor.rs @@ -107,6 +107,7 @@ impl ObjcExtractor { .result } + #[hotpath::measure(label = "code_extraction.objc.extract_tree")] fn extract_tree( file_path: &str, source: &str, @@ -159,6 +160,7 @@ impl ObjcExtractor { } /// Parse source code into a tree-sitter AST. + #[hotpath::measure(label = "code_extraction.objc.parse_source")] fn parse_source(source: &str) -> Result { crate::ts_provider::parse_extractor_source("objc", "Objective-C", source) } @@ -1324,10 +1326,12 @@ impl crate::LanguageExtractor for ObjcExtractor { "Objective-C" } + #[hotpath::measure(label = "code_extraction.objc.extract")] fn extract(&self, file_path: &str, source: &str) -> ExtractionResult { ObjcExtractor::extract_objc(file_path, source) } + #[hotpath::measure(label = "code_extraction.objc.extract_parsed")] fn extract_parsed( &self, file_path: &str, diff --git a/crates/tracedecay-code-extraction/src/ocaml_extractor.rs b/crates/tracedecay-code-extraction/src/ocaml_extractor.rs index 07a65c4ebc..7c9f5fc9ba 100644 --- a/crates/tracedecay-code-extraction/src/ocaml_extractor.rs +++ b/crates/tracedecay-code-extraction/src/ocaml_extractor.rs @@ -83,6 +83,7 @@ impl OcamlExtractor { .result } + #[hotpath::measure(label = "code_extraction.ocaml.extract_tree")] fn extract_tree( file_path: &str, source: &str, @@ -134,6 +135,7 @@ impl OcamlExtractor { ) } + #[hotpath::measure(label = "code_extraction.ocaml.parse_source")] fn parse_source(source: &str) -> Result { crate::ts_provider::parse_extractor_source("ocaml", "OCaml", source) } @@ -561,10 +563,12 @@ impl crate::LanguageExtractor for OcamlExtractor { "OCaml" } + #[hotpath::measure(label = "code_extraction.ocaml.extract")] fn extract(&self, file_path: &str, source: &str) -> ExtractionResult { Self::extract_ocaml(file_path, source) } + #[hotpath::measure(label = "code_extraction.ocaml.extract_parsed")] fn extract_parsed( &self, file_path: &str, diff --git a/crates/tracedecay-code-extraction/src/pascal_extractor.rs b/crates/tracedecay-code-extraction/src/pascal_extractor.rs index dfe5c196dc..b4d0ca0d56 100644 --- a/crates/tracedecay-code-extraction/src/pascal_extractor.rs +++ b/crates/tracedecay-code-extraction/src/pascal_extractor.rs @@ -106,6 +106,7 @@ impl PascalExtractor { .result } + #[hotpath::measure(label = "code_extraction.pascal.extract_tree")] fn extract_tree( file_path: &str, source: &str, @@ -158,6 +159,7 @@ impl PascalExtractor { } /// Parse source code into a tree-sitter AST. + #[hotpath::measure(label = "code_extraction.pascal.parse_source")] fn parse_source(source: &str) -> Result { crate::ts_provider::parse_extractor_source("pascal", "Pascal", source) } @@ -1369,10 +1371,12 @@ impl crate::LanguageExtractor for PascalExtractor { "Pascal" } + #[hotpath::measure(label = "code_extraction.pascal.extract")] fn extract(&self, file_path: &str, source: &str) -> ExtractionResult { PascalExtractor::extract_pascal(file_path, source) } + #[hotpath::measure(label = "code_extraction.pascal.extract_parsed")] fn extract_parsed( &self, file_path: &str, diff --git a/crates/tracedecay-code-extraction/src/perl_extractor.rs b/crates/tracedecay-code-extraction/src/perl_extractor.rs index 3253d8c666..270bc1644b 100644 --- a/crates/tracedecay-code-extraction/src/perl_extractor.rs +++ b/crates/tracedecay-code-extraction/src/perl_extractor.rs @@ -97,6 +97,7 @@ impl PerlExtractor { .result } + #[hotpath::measure(label = "code_extraction.perl.extract_tree")] fn extract_tree( file_path: &str, source: &str, @@ -149,6 +150,7 @@ impl PerlExtractor { } /// Parse source code into a tree-sitter AST. + #[hotpath::measure(label = "code_extraction.perl.parse_source")] fn parse_source(source: &str) -> Result { crate::ts_provider::parse_extractor_source("perl", "Perl", source) } @@ -681,10 +683,12 @@ impl crate::LanguageExtractor for PerlExtractor { "Perl" } + #[hotpath::measure(label = "code_extraction.perl.extract")] fn extract(&self, file_path: &str, source: &str) -> ExtractionResult { Self::extract_perl(file_path, source) } + #[hotpath::measure(label = "code_extraction.perl.extract_parsed")] fn extract_parsed( &self, file_path: &str, diff --git a/crates/tracedecay-code-extraction/src/php_extractor.rs b/crates/tracedecay-code-extraction/src/php_extractor.rs index 0b04eec8e9..71f363c836 100644 --- a/crates/tracedecay-code-extraction/src/php_extractor.rs +++ b/crates/tracedecay-code-extraction/src/php_extractor.rs @@ -96,6 +96,7 @@ impl PhpExtractor { .result } + #[hotpath::measure(label = "code_extraction.php.extract_tree")] fn extract_tree( file_path: &str, source: &str, @@ -148,6 +149,7 @@ impl PhpExtractor { } /// Parse source code into a tree-sitter AST. + #[hotpath::measure(label = "code_extraction.php.parse_source")] fn parse_source(source: &str) -> Result { crate::ts_provider::parse_extractor_source("php", "PHP", source) } @@ -1296,10 +1298,12 @@ impl crate::LanguageExtractor for PhpExtractor { "PHP" } + #[hotpath::measure(label = "code_extraction.php.extract")] fn extract(&self, file_path: &str, source: &str) -> ExtractionResult { Self::extract_php(file_path, source) } + #[hotpath::measure(label = "code_extraction.php.extract_parsed")] fn extract_parsed( &self, file_path: &str, diff --git a/crates/tracedecay-code-extraction/src/powershell_extractor.rs b/crates/tracedecay-code-extraction/src/powershell_extractor.rs index f93062fa84..f44a25bce8 100644 --- a/crates/tracedecay-code-extraction/src/powershell_extractor.rs +++ b/crates/tracedecay-code-extraction/src/powershell_extractor.rs @@ -93,6 +93,7 @@ impl PowerShellExtractor { .result } + #[hotpath::measure(label = "code_extraction.powershell.extract_tree")] fn extract_tree( file_path: &str, source: &str, @@ -145,6 +146,7 @@ impl PowerShellExtractor { } /// Parse source code into a tree-sitter AST. + #[hotpath::measure(label = "code_extraction.powershell.parse_source")] fn parse_source(source: &str) -> Result { crate::ts_provider::parse_extractor_source("powershell", "PowerShell", source) } @@ -503,10 +505,12 @@ impl crate::LanguageExtractor for PowerShellExtractor { "PowerShell" } + #[hotpath::measure(label = "code_extraction.powershell.extract")] fn extract(&self, file_path: &str, source: &str) -> ExtractionResult { Self::extract_powershell(file_path, source) } + #[hotpath::measure(label = "code_extraction.powershell.extract_parsed")] fn extract_parsed( &self, file_path: &str, diff --git a/crates/tracedecay-code-extraction/src/proto_extractor.rs b/crates/tracedecay-code-extraction/src/proto_extractor.rs index ba936e5bec..2d2f7fe09c 100644 --- a/crates/tracedecay-code-extraction/src/proto_extractor.rs +++ b/crates/tracedecay-code-extraction/src/proto_extractor.rs @@ -89,6 +89,7 @@ impl ProtoExtractor { .result } + #[hotpath::measure(label = "code_extraction.proto.extract_tree")] fn extract_tree( file_path: &str, source: &str, @@ -141,6 +142,7 @@ impl ProtoExtractor { } /// Parse source code into a tree-sitter AST. + #[hotpath::measure(label = "code_extraction.proto.parse_source")] fn parse_source(source: &str) -> Result { crate::ts_provider::parse_extractor_source("protobuf", "Protobuf", source) } @@ -797,10 +799,12 @@ impl crate::LanguageExtractor for ProtoExtractor { "Protobuf" } + #[hotpath::measure(label = "code_extraction.proto.extract")] fn extract(&self, file_path: &str, source: &str) -> ExtractionResult { Self::extract_proto(file_path, source) } + #[hotpath::measure(label = "code_extraction.proto.extract_parsed")] fn extract_parsed( &self, file_path: &str, diff --git a/crates/tracedecay-code-extraction/src/python_extractor.rs b/crates/tracedecay-code-extraction/src/python_extractor.rs index 84543080ed..bdf95dcfdd 100644 --- a/crates/tracedecay-code-extraction/src/python_extractor.rs +++ b/crates/tracedecay-code-extraction/src/python_extractor.rs @@ -105,6 +105,7 @@ impl PythonExtractor { .result } + #[hotpath::measure(label = "code_extraction.python.extract_tree")] fn extract_tree( file_path: &str, source: &str, @@ -157,6 +158,7 @@ impl PythonExtractor { } /// Parse source code into a tree-sitter AST. + #[hotpath::measure(label = "code_extraction.python.parse_source")] fn parse_source(source: &str) -> Result { crate::ts_provider::parse_extractor_source("python", "Python", source) } @@ -904,10 +906,12 @@ impl crate::LanguageExtractor for PythonExtractor { "Python" } + #[hotpath::measure(label = "code_extraction.python.extract")] fn extract(&self, file_path: &str, source: &str) -> ExtractionResult { PythonExtractor::extract_python(file_path, source) } + #[hotpath::measure(label = "code_extraction.python.extract_parsed")] fn extract_parsed( &self, file_path: &str, diff --git a/crates/tracedecay-code-extraction/src/qbasic_extractor.rs b/crates/tracedecay-code-extraction/src/qbasic_extractor.rs index 1a5489205b..24d7590303 100644 --- a/crates/tracedecay-code-extraction/src/qbasic_extractor.rs +++ b/crates/tracedecay-code-extraction/src/qbasic_extractor.rs @@ -99,6 +99,7 @@ impl QBasicExtractor { .result } + #[hotpath::measure(label = "code_extraction.qbasic.extract_tree")] fn extract_tree( file_path: &str, source: &str, @@ -179,6 +180,7 @@ impl QBasicExtractor { } /// Parse source code into a tree-sitter AST. + #[hotpath::measure(label = "code_extraction.qbasic.parse_source")] fn parse_source(source: &str) -> Result { crate::ts_provider::parse_extractor_source("qbasic", "QBasic", source) } @@ -679,10 +681,12 @@ impl crate::LanguageExtractor for QBasicExtractor { "QBasic" } + #[hotpath::measure(label = "code_extraction.qbasic.extract")] fn extract(&self, file_path: &str, source: &str) -> ExtractionResult { Self::extract_qbasic(file_path, source) } + #[hotpath::measure(label = "code_extraction.qbasic.extract_parsed")] fn extract_parsed( &self, file_path: &str, diff --git a/crates/tracedecay-code-extraction/src/quickbasic_extractor.rs b/crates/tracedecay-code-extraction/src/quickbasic_extractor.rs index 1ead158618..e5ebaefc93 100644 --- a/crates/tracedecay-code-extraction/src/quickbasic_extractor.rs +++ b/crates/tracedecay-code-extraction/src/quickbasic_extractor.rs @@ -24,10 +24,12 @@ impl crate::LanguageExtractor for QuickBasicExtractor { "QuickBASIC" } + #[hotpath::measure(label = "code_extraction.quickbasic.extract")] fn extract(&self, file_path: &str, source: &str) -> ExtractionResult { QBasicExtractor::extract_qbasic(file_path, source) } + #[hotpath::measure(label = "code_extraction.quickbasic.extract_parsed")] fn extract_parsed( &self, file_path: &str, diff --git a/crates/tracedecay-code-extraction/src/quint_extractor.rs b/crates/tracedecay-code-extraction/src/quint_extractor.rs index 4f9ce8d582..09abee3461 100644 --- a/crates/tracedecay-code-extraction/src/quint_extractor.rs +++ b/crates/tracedecay-code-extraction/src/quint_extractor.rs @@ -206,6 +206,7 @@ impl QuintExtractor { .result } + #[hotpath::measure(label = "code_extraction.quint.extract_tree")] fn extract_tree( file_path: &str, source: &str, @@ -388,10 +389,12 @@ impl crate::LanguageExtractor for QuintExtractor { "Quint" } + #[hotpath::measure(label = "code_extraction.quint.extract")] fn extract(&self, file_path: &str, source: &str) -> ExtractionResult { Self::extract_quint(file_path, source) } + #[hotpath::measure(label = "code_extraction.quint.extract_parsed")] fn extract_parsed( &self, file_path: &str, diff --git a/crates/tracedecay-code-extraction/src/r_extractor.rs b/crates/tracedecay-code-extraction/src/r_extractor.rs index f431b71103..d2805967a2 100644 --- a/crates/tracedecay-code-extraction/src/r_extractor.rs +++ b/crates/tracedecay-code-extraction/src/r_extractor.rs @@ -83,6 +83,7 @@ impl RExtractor { .result } + #[hotpath::measure(label = "code_extraction.r.extract_tree")] fn extract_tree( file_path: &str, source: &str, @@ -134,6 +135,7 @@ impl RExtractor { ) } + #[hotpath::measure(label = "code_extraction.r.parse_source")] fn parse_source(source: &str) -> Result { crate::ts_provider::parse_extractor_source("r", "R", source) } @@ -325,10 +327,12 @@ impl crate::LanguageExtractor for RExtractor { "R" } + #[hotpath::measure(label = "code_extraction.r.extract")] fn extract(&self, file_path: &str, source: &str) -> ExtractionResult { Self::extract_r(file_path, source) } + #[hotpath::measure(label = "code_extraction.r.extract_parsed")] fn extract_parsed( &self, file_path: &str, diff --git a/crates/tracedecay-code-extraction/src/ruby_extractor.rs b/crates/tracedecay-code-extraction/src/ruby_extractor.rs index 6d5b485aac..86491e4131 100644 --- a/crates/tracedecay-code-extraction/src/ruby_extractor.rs +++ b/crates/tracedecay-code-extraction/src/ruby_extractor.rs @@ -97,6 +97,7 @@ impl RubyExtractor { .result } + #[hotpath::measure(label = "code_extraction.ruby.extract_tree")] fn extract_tree( file_path: &str, source: &str, @@ -149,6 +150,7 @@ impl RubyExtractor { } /// Parse source code into a tree-sitter AST. + #[hotpath::measure(label = "code_extraction.ruby.parse_source")] fn parse_source(source: &str) -> Result { crate::ts_provider::parse_extractor_source("ruby", "Ruby", source) } @@ -685,10 +687,12 @@ impl crate::LanguageExtractor for RubyExtractor { "Ruby" } + #[hotpath::measure(label = "code_extraction.ruby.extract")] fn extract(&self, file_path: &str, source: &str) -> ExtractionResult { Self::extract_ruby(file_path, source) } + #[hotpath::measure(label = "code_extraction.ruby.extract_parsed")] fn extract_parsed( &self, file_path: &str, diff --git a/crates/tracedecay-code-extraction/src/rust_extractor.rs b/crates/tracedecay-code-extraction/src/rust_extractor.rs index 0182818195..a8dbf10daa 100644 --- a/crates/tracedecay-code-extraction/src/rust_extractor.rs +++ b/crates/tracedecay-code-extraction/src/rust_extractor.rs @@ -98,6 +98,7 @@ impl RustExtractor { .result } + #[hotpath::measure(label = "code_extraction.rust.extract_tree")] fn extract_tree( file_path: &str, source: &str, @@ -150,6 +151,7 @@ impl RustExtractor { } /// Parse source code into a tree-sitter AST. + #[hotpath::measure(label = "code_extraction.rust.parse_source")] fn parse_source(source: &str) -> Result { crate::ts_provider::parse_extractor_source("rust", "Rust", source) } @@ -1538,10 +1540,12 @@ impl crate::LanguageExtractor for RustExtractor { "Rust" } + #[hotpath::measure(label = "code_extraction.rust.extract")] fn extract(&self, file_path: &str, source: &str) -> ExtractionResult { RustExtractor::extract(file_path, source) } + #[hotpath::measure(label = "code_extraction.rust.extract_parsed")] fn extract_parsed( &self, file_path: &str, diff --git a/crates/tracedecay-code-extraction/src/scala_extractor.rs b/crates/tracedecay-code-extraction/src/scala_extractor.rs index e2b0ac68c7..ac673e763d 100644 --- a/crates/tracedecay-code-extraction/src/scala_extractor.rs +++ b/crates/tracedecay-code-extraction/src/scala_extractor.rs @@ -101,6 +101,7 @@ impl ScalaExtractor { .result } + #[hotpath::measure(label = "code_extraction.scala.extract_tree")] fn extract_tree( file_path: &str, source: &str, @@ -153,6 +154,7 @@ impl ScalaExtractor { } /// Parse source code into a tree-sitter AST. + #[hotpath::measure(label = "code_extraction.scala.parse_source")] fn parse_source(source: &str) -> Result { crate::ts_provider::parse_extractor_source("scala", "Scala", source) } @@ -1482,10 +1484,12 @@ impl crate::LanguageExtractor for ScalaExtractor { "Scala" } + #[hotpath::measure(label = "code_extraction.scala.extract")] fn extract(&self, file_path: &str, source: &str) -> ExtractionResult { ScalaExtractor::extract_scala(file_path, source) } + #[hotpath::measure(label = "code_extraction.scala.extract_parsed")] fn extract_parsed( &self, file_path: &str, diff --git a/crates/tracedecay-code-extraction/src/sql_extractor.rs b/crates/tracedecay-code-extraction/src/sql_extractor.rs index 074f2f8781..21d823ffcf 100644 --- a/crates/tracedecay-code-extraction/src/sql_extractor.rs +++ b/crates/tracedecay-code-extraction/src/sql_extractor.rs @@ -65,6 +65,7 @@ impl SqlExtractor { .result } + #[hotpath::measure(label = "code_extraction.sql.extract_tree")] fn extract_tree( file_path: &str, source: &str, @@ -112,6 +113,7 @@ impl SqlExtractor { ) } + #[hotpath::measure(label = "code_extraction.sql.parse_source")] fn parse_source(source: &str) -> Result { crate::ts_provider::parse_extractor_source("sql", "SQL", source) } @@ -230,10 +232,12 @@ impl crate::LanguageExtractor for SqlExtractor { "SQL" } + #[hotpath::measure(label = "code_extraction.sql.extract")] fn extract(&self, file_path: &str, source: &str) -> ExtractionResult { Self::extract_sql(file_path, source) } + #[hotpath::measure(label = "code_extraction.sql.extract_parsed")] fn extract_parsed( &self, file_path: &str, diff --git a/crates/tracedecay-code-extraction/src/svelte_extractor.rs b/crates/tracedecay-code-extraction/src/svelte_extractor.rs index b38f4b0182..55d7ce3f57 100644 --- a/crates/tracedecay-code-extraction/src/svelte_extractor.rs +++ b/crates/tracedecay-code-extraction/src/svelte_extractor.rs @@ -119,6 +119,7 @@ impl LanguageExtractor for SvelteExtractor { crate::hotpath_observe::measure_language(|| Cow::Owned(Self::mask_non_script(source))) } + #[hotpath::measure(label = "code_extraction.svelte.extract")] fn extract(&self, file_path: &str, source: &str) -> ExtractionResult { Self::extract_svelte(file_path, source) } @@ -135,6 +136,7 @@ impl LanguageExtractor for SvelteExtractor { ) } + #[hotpath::measure(label = "code_extraction.svelte.extract_parsed")] fn extract_parsed( &self, file_path: &str, diff --git a/crates/tracedecay-code-extraction/src/swift_extractor.rs b/crates/tracedecay-code-extraction/src/swift_extractor.rs index 29e07ca46b..c5184d70b4 100644 --- a/crates/tracedecay-code-extraction/src/swift_extractor.rs +++ b/crates/tracedecay-code-extraction/src/swift_extractor.rs @@ -98,6 +98,7 @@ impl SwiftExtractor { .result } + #[hotpath::measure(label = "code_extraction.swift.extract_tree")] fn extract_tree( file_path: &str, source: &str, @@ -150,6 +151,7 @@ impl SwiftExtractor { } /// Parse source code into a tree-sitter AST. + #[hotpath::measure(label = "code_extraction.swift.parse_source")] fn parse_source(source: &str) -> Result { crate::ts_provider::parse_extractor_source("swift", "Swift", source) } @@ -1365,10 +1367,12 @@ impl crate::LanguageExtractor for SwiftExtractor { "Swift" } + #[hotpath::measure(label = "code_extraction.swift.extract")] fn extract(&self, file_path: &str, source: &str) -> ExtractionResult { Self::extract_swift(file_path, source) } + #[hotpath::measure(label = "code_extraction.swift.extract_parsed")] fn extract_parsed( &self, file_path: &str, diff --git a/crates/tracedecay-code-extraction/src/toml_extractor.rs b/crates/tracedecay-code-extraction/src/toml_extractor.rs index 2856d12a54..06e7cf5ea7 100644 --- a/crates/tracedecay-code-extraction/src/toml_extractor.rs +++ b/crates/tracedecay-code-extraction/src/toml_extractor.rs @@ -67,6 +67,7 @@ impl TomlExtractor { .result } + #[hotpath::measure(label = "code_extraction.toml.extract_tree")] fn extract_tree( file_path: &str, source: &str, @@ -300,10 +301,12 @@ impl crate::LanguageExtractor for TomlExtractor { "TOML" } + #[hotpath::measure(label = "code_extraction.toml.extract")] fn extract(&self, file_path: &str, source: &str) -> ExtractionResult { Self::extract_toml(file_path, source) } + #[hotpath::measure(label = "code_extraction.toml.extract_parsed")] fn extract_parsed( &self, file_path: &str, diff --git a/crates/tracedecay-code-extraction/src/typescript_extractor.rs b/crates/tracedecay-code-extraction/src/typescript_extractor.rs index 95df402bad..512d720205 100644 --- a/crates/tracedecay-code-extraction/src/typescript_extractor.rs +++ b/crates/tracedecay-code-extraction/src/typescript_extractor.rs @@ -120,6 +120,7 @@ impl TypeScriptExtractor { .artifact } + #[hotpath::measure(label = "code_extraction.typescript.extract_tree")] fn extract_tree( file_path: &str, source: &str, @@ -202,6 +203,7 @@ impl TypeScriptExtractor { } /// Parse source code into a tree-sitter AST, selecting grammar by file extension. + #[hotpath::measure(label = "code_extraction.typescript.parse_source")] fn parse_source(source: &str, extension: &str) -> Result { let (key, label) = match extension { "ts" | "astro" | "svelte" => ("typescript", "TypeScript"), @@ -1508,6 +1510,7 @@ impl crate::LanguageExtractor for TypeScriptExtractor { "TypeScript" } + #[hotpath::measure(label = "code_extraction.typescript.extract")] fn extract(&self, file_path: &str, source: &str) -> ExtractionResult { TypeScriptExtractor::extract_typescript(file_path, source) } @@ -1521,6 +1524,7 @@ impl crate::LanguageExtractor for TypeScriptExtractor { ) } + #[hotpath::measure(label = "code_extraction.typescript.extract_parsed")] fn extract_parsed( &self, file_path: &str, diff --git a/crates/tracedecay-code-extraction/src/vbnet_extractor.rs b/crates/tracedecay-code-extraction/src/vbnet_extractor.rs index 0911949908..2501345a1d 100644 --- a/crates/tracedecay-code-extraction/src/vbnet_extractor.rs +++ b/crates/tracedecay-code-extraction/src/vbnet_extractor.rs @@ -124,6 +124,7 @@ impl VbNetExtractor { .result } + #[hotpath::measure(label = "code_extraction.vbnet.extract_tree")] fn extract_tree( file_path: &str, source: &str, @@ -176,6 +177,7 @@ impl VbNetExtractor { } /// Parse source code into a tree-sitter AST. + #[hotpath::measure(label = "code_extraction.vbnet.parse_source")] fn parse_source(source: &str) -> Result { crate::ts_provider::parse_extractor_source("vbnet", "VB.NET", source) } @@ -1478,10 +1480,12 @@ impl crate::LanguageExtractor for VbNetExtractor { "VB.NET" } + #[hotpath::measure(label = "code_extraction.vbnet.extract")] fn extract(&self, file_path: &str, source: &str) -> ExtractionResult { VbNetExtractor::extract_vbnet(file_path, source) } + #[hotpath::measure(label = "code_extraction.vbnet.extract_parsed")] fn extract_parsed( &self, file_path: &str, diff --git a/crates/tracedecay-code-extraction/src/wgsl_extractor.rs b/crates/tracedecay-code-extraction/src/wgsl_extractor.rs index 079928c263..ad29b5a81f 100644 --- a/crates/tracedecay-code-extraction/src/wgsl_extractor.rs +++ b/crates/tracedecay-code-extraction/src/wgsl_extractor.rs @@ -89,6 +89,7 @@ impl WgslExtractor { .result } + #[hotpath::measure(label = "code_extraction.wgsl.extract_tree")] fn extract_tree( file_path: &str, source: &str, @@ -139,6 +140,7 @@ impl WgslExtractor { ) } + #[hotpath::measure(label = "code_extraction.wgsl.parse_source")] fn parse_source(source: &str) -> Result { crate::ts_provider::parse_extractor_source("wgsl", "WGSL", source) } @@ -542,10 +544,12 @@ impl crate::LanguageExtractor for WgslExtractor { "WGSL" } + #[hotpath::measure(label = "code_extraction.wgsl.extract")] fn extract(&self, file_path: &str, source: &str) -> ExtractionResult { WgslExtractor::extract_source(file_path, source) } + #[hotpath::measure(label = "code_extraction.wgsl.extract_parsed")] fn extract_parsed( &self, file_path: &str, diff --git a/crates/tracedecay-code-extraction/src/zig_extractor.rs b/crates/tracedecay-code-extraction/src/zig_extractor.rs index 13e6f1c4d3..f91fa3fb36 100644 --- a/crates/tracedecay-code-extraction/src/zig_extractor.rs +++ b/crates/tracedecay-code-extraction/src/zig_extractor.rs @@ -97,6 +97,7 @@ impl ZigExtractor { .result } + #[hotpath::measure(label = "code_extraction.zig.extract_tree")] fn extract_tree( file_path: &str, source: &str, @@ -149,6 +150,7 @@ impl ZigExtractor { } /// Parse source code into a tree-sitter AST. + #[hotpath::measure(label = "code_extraction.zig.parse_source")] fn parse_source(source: &str) -> Result { crate::ts_provider::parse_extractor_source("zig", "Zig", source) } @@ -888,10 +890,12 @@ impl crate::LanguageExtractor for ZigExtractor { "Zig" } + #[hotpath::measure(label = "code_extraction.zig.extract")] fn extract(&self, file_path: &str, source: &str) -> ExtractionResult { Self::extract_zig(file_path, source) } + #[hotpath::measure(label = "code_extraction.zig.extract_parsed")] fn extract_parsed( &self, file_path: &str,