feat(hotpath): fill code-extraction extract/parse gaps - #774
Draft
ScriptedAlchemy wants to merge 4 commits into
Draft
feat(hotpath): fill code-extraction extract/parse gaps#774ScriptedAlchemy wants to merge 4 commits into
ScriptedAlchemy wants to merge 4 commits into
Conversation
Co-authored-by: Zack Jackson <ScriptedAlchemy@users.noreply.github.com>
|
Contributor
Performance Comparison
|
…sor/hotpath-code-extraction-gaps-ea9c
…sor/hotpath-code-extraction-gaps-ea9c
…sor/hotpath-code-extraction-gaps-ea9c
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
feat(hotpath): fill code-extraction extract/parse gaps
Gap-fill instrumentation for
crates/tracedecay-code-extraction(HP-extract) only. Before this PR, 2 of 120 files carried hotpath sites (src/hotpath_observe.rsgauges,src/redundancy.rstwo measures); all 51*_extractor.rsfiles had zero spans. This adds#[hotpath::measure]to the uniform per-language entry points — traitextract/extract_parsedand inherentextract_tree/parse_source— giving per-language span breakdowns nested under the existing file-levelcode_extraction.parse_file/code_extraction.traverse_filespans.code_extraction.<lang>.<verb>with verbsextract,extract_parsed,extract_tree,parse_source.--features hotpath, andhotpath*features remain excluded fromdefault/production.visit_*helpers, getters, Display impls, and tests are untouched.hotpath_observe.rs,redundancy.rs) left intact.extract/extract_batchbodies called by the traitextract) were deliberately not annotated to avoid double-counting the same work.Verified:
cargo check -p tracedecay-code-extractionandcargo check -p tracedecay-code-extraction --features hotpathboth pass.Files touched, measure sites, new labels
Verb key per file: E =
…extract, EP =…extract_parsed, ET =…extract_tree, PS =…parse_source. Files without an inherentextract_tree/parse_source(composite adapters and delegating extractors) get only the trait entry points.src/)code_extraction.<lang>.*)astro_extractor.rsastro.extract,astro.extract_parsedbash_extractor.rsbash.{extract, extract_parsed, extract_tree, parse_source}batch_extractor.rsbatch.{extract, extract_parsed, extract_tree, parse_source}c_extractor.rsc.{extract, extract_parsed, extract_tree, parse_source}clojure_extractor.rsclojure.{extract, extract_parsed, extract_tree, parse_source}cobol_extractor.rscobol.{extract, extract_parsed, extract_tree, parse_source}cpp_extractor.rscpp.{extract, extract_parsed, extract_tree, parse_source}csharp_extractor.rscsharp.{extract, extract_parsed, extract_tree, parse_source}dart_extractor.rsdart.{extract, extract_parsed, extract_tree, parse_source}dockerfile_extractor.rsdockerfile.{extract, extract_parsed, extract_tree, parse_source}elixir_extractor.rselixir.{extract, extract_parsed, extract_tree, parse_source}erlang_extractor.rserlang.{extract, extract_parsed, extract_tree, parse_source}fortran_extractor.rsfortran.{extract, extract_parsed, extract_tree, parse_source}fsharp_extractor.rsfsharp.{extract, extract_parsed, extract_tree, parse_source}glsl_extractor.rsglsl.{extract, extract_parsed, extract_tree, parse_source}go_extractor.rsgo.{extract, extract_parsed, extract_tree, parse_source}gwbasic_extractor.rsgwbasic.{extract, extract_parsed, extract_tree, parse_source}haskell_extractor.rshaskell.{extract, extract_parsed, extract_tree, parse_source}hlsl_extractor.rshlsl.{extract, extract_parsed, extract_tree, parse_source}java_extractor.rsjava.{extract, extract_parsed, extract_tree, parse_source}julia_extractor.rsjulia.{extract, extract_parsed, extract_tree, parse_source}kotlin_extractor.rskotlin.{extract, extract_parsed, extract_tree, parse_source}lean_extractor.rslean.{extract, extract_parsed, extract_tree}lua_extractor.rslua.{extract, extract_parsed, extract_tree, parse_source}markdown_extractor.rsmarkdown.extract,markdown.extract_parsedmetal_extractor.rsmetal.extract,metal.extract_parsedmsbasic2_extractor.rsmsbasic2.{extract, extract_parsed, extract_tree, parse_source}nix_extractor.rsnix.{extract, extract_parsed, extract_tree, parse_source}objc_extractor.rsobjc.{extract, extract_parsed, extract_tree, parse_source}ocaml_extractor.rsocaml.{extract, extract_parsed, extract_tree, parse_source}pascal_extractor.rspascal.{extract, extract_parsed, extract_tree, parse_source}perl_extractor.rsperl.{extract, extract_parsed, extract_tree, parse_source}php_extractor.rsphp.{extract, extract_parsed, extract_tree, parse_source}powershell_extractor.rspowershell.{extract, extract_parsed, extract_tree, parse_source}proto_extractor.rsproto.{extract, extract_parsed, extract_tree, parse_source}python_extractor.rspython.{extract, extract_parsed, extract_tree, parse_source}qbasic_extractor.rsqbasic.{extract, extract_parsed, extract_tree, parse_source}quickbasic_extractor.rsquickbasic.extract,quickbasic.extract_parsedquint_extractor.rsquint.{extract, extract_parsed, extract_tree}r_extractor.rsr.{extract, extract_parsed, extract_tree, parse_source}ruby_extractor.rsruby.{extract, extract_parsed, extract_tree, parse_source}rust_extractor.rsrust.{extract, extract_parsed, extract_tree, parse_source}scala_extractor.rsscala.{extract, extract_parsed, extract_tree, parse_source}sql_extractor.rssql.{extract, extract_parsed, extract_tree, parse_source}svelte_extractor.rssvelte.extract,svelte.extract_parsedswift_extractor.rsswift.{extract, extract_parsed, extract_tree, parse_source}toml_extractor.rstoml.{extract, extract_parsed, extract_tree}typescript_extractor.rstypescript.{extract, extract_parsed, extract_tree, parse_source}vbnet_extractor.rsvbnet.{extract, extract_parsed, extract_tree, parse_source}wgsl_extractor.rswgsl.{extract, extract_parsed, extract_tree, parse_source}zig_extractor.rszig.{extract, extract_parsed, extract_tree, parse_source}Total: 51 files, 191 sites, 191 new labels.