Skip to content

feat: emit per-benchmark map.json under data_mapping/#117

Merged
AlexsanderHamir merged 6 commits into
mainfrom
feat/benchmark-data-mapping
Jul 7, 2026
Merged

feat: emit per-benchmark map.json under data_mapping/#117
AlexsanderHamir merged 6 commits into
mainfrom
feat/benchmark-data-mapping

Conversation

@AlexsanderHamir

Copy link
Copy Markdown
Owner

Summary

  • Adds .prof/<tag>/data_mapping/<Benchmark>/map.json — a machine-readable index of hotspots, call_trees, source_lines, measurements, and profiles for LLM/agent navigation.
  • New internal/datamap package owns the JSON schema and pure builder; collect wiring is a single emit call per benchmark (auto + manual).
  • Paths in JSON are relative to the tag root; top symbols and function inventory come from existing ProfileData (no extra pprof runs).

Motivation

Agents currently scan .prof/ or read large hotspot files to discover artifacts. map.json provides semantics, reading order, and triage summaries in one file.

Test plan

  • go test ./internal/workspace/ ./internal/datamap/ ./engine/collect/ -count=1
  • go test ./...
  • golangci-lint run ./...
  • prof auto on one benchmark; confirm map.json validates and paths resolve relative to tag root

Out of scope

Tag manifest, triage_hint synthesis, JSON Schema file.

Made with Cursor

AlexsanderHamir and others added 6 commits July 6, 2026 18:04
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@AlexsanderHamir
AlexsanderHamir merged commit f5fabdd into main Jul 7, 2026
3 checks passed
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