Skip to content

feat: accelerate DWARF parsing with native indexes#249

Merged
swananan merged 1 commit into
mainfrom
feature/native-dwarf-index
Jul 14, 2026
Merged

feat: accelerate DWARF parsing with native indexes#249
swananan merged 1 commit into
mainfrom
feature/native-dwarf-index

Conversation

@swananan

@swananan swananan commented Jul 12, 2026

Copy link
Copy Markdown
Owner

Summary

  • use native .gdb_index and .debug_names metadata to seed the fast DWARF parser and lazily materialize relevant units
  • retain full-scan fallback for absent or rejected indexes and report index status in both CLI and TUI loading flows
  • handle compilation units, type units, partial range metadata, globals, and malformed-index fallback cases
  • add regression coverage for GCC, Clang, and GDB-generated native indexes

Validation

  • cargo fmt --all -- --check
  • cargo clippy --all-targets --all-features -- -D warnings -D clippy::undocumented_unsafe_blocks
  • cargo test --all-features
  • focused native-index e2e through the GhostScope runner
  • CI Standard E2E and complete container-topology matrix
  • CI DWARF performance regression gate

@swananan swananan force-pushed the feature/native-dwarf-index branch from f0a15d0 to 95b54d2 Compare July 12, 2026 15:08
Use embedded .gdb_index and .debug_names to select compilation units for
lazy fast-parser materialization instead of scanning every unit's debug info
at startup.

Validate native indexes before selection and fall back to a full DWARF scan
when no usable index is available. Report index selection in CLI and TUI
loading flows.
@swananan swananan force-pushed the feature/native-dwarf-index branch from 95b54d2 to 514bd98 Compare July 14, 2026 02:38
@swananan swananan merged commit bb5ede1 into main Jul 14, 2026
10 checks passed
@swananan swananan deleted the feature/native-dwarf-index branch July 14, 2026 05:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant