Skip to content

feat(profiling): P4 JSON/CSV baseline export + metadata (LOC-69)#73

Merged
dev07060 merged 1 commit into
feat/loc-68-profiler-timingfrom
feat/loc-69-profiler-export
Jun 1, 2026
Merged

feat(profiling): P4 JSON/CSV baseline export + metadata (LOC-69)#73
dev07060 merged 1 commit into
feat/loc-68-profiler-timingfrom
feat/loc-69-profiler-export

Conversation

@dev07060

@dev07060 dev07060 commented Jun 1, 2026

Copy link
Copy Markdown
Owner

P4 — JSON/CSV export + 로그 + 메타 (baseline 산출, LOC-69)

⚠️ 스택 PR — base는 feat/loc-68-profiler-timing(P3). P3을 main에 먼저 머지한 뒤 이 PR을 main으로 retarget 후 머지하세요(아니면 orphan).

P3 위에 export를 얹어 baseline을 박제(1차 목표 달성 지점).

변경

  • example/lib/profiling/profile_export.dart — 리포트를 앱 documents dir에 query_profile_<ts>.json/.csv flush + 실행당 PROFILE 로그 + dir/파일명 로그. 물리기기 추출: Xcode Download Container 또는 xcrun devicectl(simctl은 시뮬전용).
  • 측정 엔트리에 export 배선 + 실행 메타(os/os_version).

baseline (iPhone iOS 26.5, profile, 500 docs/collection, topK=10)

lane category embed p50/p95 activate search p50/p95 hydrate p50/p95
unfiltered pure_cold (n=1) 25.2 247.3 2.20 0.42
unfiltered pure_warm (n=30) 26.7 / 36.7 1.60 / 2.08 0.27 / 0.41
filtered(i8) pure_warm (n=30) 27.6 / 37.6 0.76 / 0.92 0.19 / 0.30
unfiltered switching_cold (n=30) 25.7 / 37.0 (로그 트렁케이션 유실) 1.47 / 1.90 (유실)

지배 세그먼트 → P5(LOC-70) 게이트

  • Warm: embed(ONNX) 지배 (~27ms) → 다음 타깃은 ONNX 추론(크레이트 외부), Rust 벡터 작업 불필요.
  • Cold: activate(HNSW build/load) 지배 (247ms) → Phase-2에서 bm25_rebuild vs hnsw_load 분해.
  • 필터 i8 exact-scan search가 unfiltered보다 빠름(0.76 vs 1.60ms) — LOC-64와 일관.

상세: PR-P4.md · Linear LOC-69. flutter analyze 클린, iPhone profile 런 green. 머지는 본인.

Export the report to the app documents dir as query_profile_<ts>.json/.csv with
flush, one PROFILE log line per run, and the export dir/filenames logged for
off-device pull (physical-device steps: Xcode Download Container / devicectl).
Wire export into the measurement test + add os/os_version metadata. PR-P4.md +
README. baseline = embed(ONNX) dominates warm; activate dominates cold.
@linear-code

linear-code Bot commented Jun 1, 2026

Copy link
Copy Markdown

LOC-69

@dev07060 dev07060 self-assigned this Jun 1, 2026
@dev07060 dev07060 merged commit 5ce0d9f into feat/loc-68-profiler-timing Jun 1, 2026
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