Skip to content

feat(browser): 부수 자원 비용 비교 옵션과 안전 단계 계측 - #22

Draft
digitie wants to merge 2 commits into
mainfrom
codex/browser-resource-metrics-20261016
Draft

digitie wants to merge 2 commits into
mainfrom
codex/browser-resource-metrics-20261016

Conversation

@digitie

@digitie digitie commented Oct 16, 2026 •

Copy link
Copy Markdown
Owner

브라우저 수집의 부수 자원 비용을 실제 출력과 함께 비교할 수 있도록 기본 off인 block_visual_resources와 독립 on_metrics를 추가합니다. 공식 HTTP API, 두 탭/지역 범위, raw·좌표·가격, 재시도·quota·pacing은 유지합니다.

차단은 image/font/media에만 적용하며 document/script/stylesheet/XHR/fetch와 기존 route는 fallback합니다. 계측은 URL·본문·식별자 없이 고정32개 정수만 전달하고 실패·취소 시 자기 handler를 정리합니다.

실제 loopback Chromium 세 쌍에서 전체 typed/raw 출력은 같았고 검색2회도 유지했습니다. 다만 route가 HTTP cache를 꺼 서버 요청은9→10회(JS/CSS 각각1→3회)로 늘었습니다. CPU·wall 개선은 입증하지 않았으며 메모리도 표본치입니다. 운영 옵션/Transport pin은 변경하지 않았습니다.

검증:

  • compileall/mypy 통과
  • 전체297 passed, 4 live skipped, 14 subtests / coverage94%
  • 실제 Chromium fixture5개: 출력·cache·401/403/429/CAPTCHA
  • 실제 task cancellation 및 다른 collector/page handler 소유권 회귀
  • 별도 프로세스 순서 교대6회 CPU/RSS/PSS/wall 비교, 상세 수치와 한계는 docs/browser-collection.md
  • 최종 acf3a9b GitHub CI typecheck 및 Python3.11/3.12/3.13 테스트4개 SUCCESS. 실제 Chromium fixture/비용 비교는 위 로컬 결과와 구분합니다.

두 독립 리뷰와 실제 수집의 출력/요청량/비용 비교 전에는 운영에 채택하지 않습니다. live provider/운영 호출0, 원본 작업 트리의 미커밋 변경은 보존했습니다.

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