Skip to content

TraceIndex: query roofline bound and utilization as typed columns - #1025

Open
ajassani wants to merge 2 commits into
mainfrom
ajassani/traceindex-roofline-columns
Open

TraceIndex: query roofline bound and utilization as typed columns#1025
ajassani wants to merge 2 commits into
mainfrom
ajassani/traceindex-roofline-columns

Conversation

@ajassani

Copy link
Copy Markdown
Collaborator

Summary

  • Promote Pct Roofline_*, Roofline Bound, Roofline Time, and Percentage (%) from unified_perf_summary.csv into typed unified_perf_rows columns (pct_roofline_*, roofline_bound, roofline_time_us, gpu_kernel_pct).
  • Existing SQLite catalogs are upgraded in place: ALTER TABLE plus UPDATE from raw_row_json. New imports write the columns directly.
  • Empty CSV cells stay SQL NULL, so WHERE pct_roofline_mean < 40 only hits rows that actually have a roofline.

Test plan

  • pytest tests/test_trace_index.py
  • Open an existing catalog with TraceLens_trace_index and confirm PRAGMA table_info(unified_perf_rows) includes the new columns
  • SELECT roofline_bound, COUNT(*), AVG(pct_roofline_mean) FROM unified_perf_rows WHERE roofline_bound IS NOT NULL GROUP BY 1

Made with Cursor

@ajassani
ajassani requested a review from gabeweisz September 11, 2026 18:53
Filter bound and Pct Roofline without json_extract, and backfill existing SQLite catalogs from raw_row_json.

Co-authored-by: Cursor <cursoragent@cursor.com>
@ajassani
ajassani force-pushed the ajassani/traceindex-roofline-columns branch from c47ff35 to b332162 Compare September 11, 2026 19:06
@ajassani
ajassani changed the base branch from ajassani/traceindex-feature to main September 11, 2026 19:06
Co-authored-by: Cursor <cursoragent@cursor.com>
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 88.57143% with 4 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
TraceLens/TraceIndex/sqlite_store.py 88.57% 4 Missing ⚠️

📢 Thoughts on this report? Let us know!

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.

2 participants