2025년 3월 27일부터 AOSP를 빌드하고 기여하려면 aosp-main
대신 android-latest-release
를 사용하는 것이 좋습니다. 자세한 내용은 AOSP 변경사항을 참고하세요.
ViewCapture
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
ViewCapture 덤프는 위치, 크기, 크기 조정, 가시성을 비롯하여 특정 시점의 창 뷰 계층 구조의 스냅샷입니다. 반면 ViewCapture 트레이스는 상태의 시간 순서를 제공하여 시간이 지남에 따라 뷰가 어떻게 동작하는지에 대한 통계를 제공합니다. 간단히 말해 ViewCapture는 창 내 뷰 및 속성에 관한 정보를 캡처하여 특정 순간의 사용자 환경을 파악하고 시간 경과에 따른 변화를 추적할 수 있도록 합니다. 이는 배터리 아이콘이 누락됨 또는 알림이 깜박임과 같은 문제를 해결하는 데 유용합니다.
Winscope의 ViewCapture 뷰어를 사용하면 특정 시점의 뷰 상태를 시각화하고, 시간 경과에 따른 뷰 변경사항을 관찰하고, 뷰 계층 구조 데이터에서 버그나 이상치를 분석할 수 있습니다. 프레임별 시각화를 사용하면 화면 녹화보다 보기 상태를 더 쉽게 검사할 수 있습니다. 또한 뷰 트레이스를 수집하는 것은 화면 녹화보다 CPU 사용량이 적으므로 더 쉽게 사용 설정할 수 있습니다.
트레이스 수집에 관한 자세한 내용은 ViewCapture를 참고하세요.
탭 구조
ViewCapture 탭은 직사각형 뷰, 계층 구조 뷰, 속성 뷰라는 세 가지 패널로 나뉩니다.
그림 1. ViewCapture trace 분석
직사각형 뷰
화면 왼쪽에는 뷰 계층 구조의 3D 뷰가 표시됩니다. 직사각형 뷰는 뷰 경계, z 순서, 불투명도를 고려합니다.
직사각형 보기에는 사용 가능한 모든 창을 표시하는 메뉴가 상단에 있습니다. 표시할 항목을 선택할 때 특정 창 또는 모든 창을 선택할 수 있습니다.
그림 2. ViewCapture 직사각형 뷰
계층구조로 보기
탭의 중앙 세그먼트에는 뷰 계층 구조가 표시됩니다. 이 뷰에는 뷰 간의 상위-하위 관계 외에도 다음 정보가 포함됩니다.
숙박 시설 뷰
디버깅을 쉽게 하기 위해 ViewCapture 뷰어는 선별된 속성 목록을 제공하여 정보를 더 체계적인 형식으로 표시합니다. 이 목록에는 다음과 같은 카테고리가 포함됩니다.
- 보기: 식별자를 봅니다.
- Geometry: 뷰 도형에 관한 좌표, 크기, 크기 조정, 기타 세부정보입니다.
- 효과: 뷰의 효과 및 기타 기타 속성입니다.
이 페이지에 나와 있는 콘텐츠와 코드 샘플에는 콘텐츠 라이선스에서 설명하는 라이선스가 적용됩니다. 자바 및 OpenJDK는 Oracle 및 Oracle 계열사의 상표 또는 등록 상표입니다.
최종 업데이트: 2025-07-27(UTC)
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["필요한 정보가 없음","missingTheInformationINeed","thumb-down"],["너무 복잡함/단계 수가 너무 많음","tooComplicatedTooManySteps","thumb-down"],["오래됨","outOfDate","thumb-down"],["번역 문제","translationIssue","thumb-down"],["샘플/코드 문제","samplesCodeIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2025-07-27(UTC)"],[],[],null,["# ViewCapture dumps are snapshots of a window's view hierarchy at a specific time,\nincluding location, size, scale, and visibility. ViewCapture traces, on the\nother hand, provide a chronological sequence of states, offering insights into\nhow views behave over time. Simply put, ViewCapture captures information about\nviews within a window and their properties, letting you understand the user\nexperience at specific moments and track changes over time. This is useful for\ntroubleshooting issues like *my battery icon is missing* or *my notification\nflickered*.\n\nWinscope's ViewCapture viewer lets you visualize the view state at a moment in\ntime, watch view changes over time, and analyze view hierarchy data for bugs or\nanomalies. The frame-by-frame visualization makes it easier to inspect view\nstates compared to screen recordings. Collecting view traces is also less\nCPU-intensive than screen recording, making it easier to enable.\n\nSee [ViewCapture](/docs/core/graphics/winscope/capture/adb#capture-adb-vc)\nfor more information about trace collection.\n\nTab structure\n-------------\n\nThe ViewCapture tab is split in three panels: rects view, hierarchy view, and\nproperties view:\n\n**Figure 1.** ViewCapture trace analysis.\n\n### Rects view\n\nThe left side of the screen features a 3D view of the view hierarchy. The rects\nview considers view bounds, z-order, and opacity.\n\nThe rects view has a menu at the top that displays all available\nwindows. You can select a specific window or all of them when choosing what to\ndisplay:\n\n**Figure 2.** ViewCapture rects view.\n\n### Hierarchy view\n\nThe tab's central segment shows the view hierarchy. In addition to the\nparent-child relationships between view, this view also includes the following\ninformation:\n\n- **V:** Identifies visible views.\n\n### Properties view\n\nTo make debugging easier, the ViewCapture viewer provides a curated list of\nproperties, presenting the information in a more organized format. This list\nincludes the following categories:\n\n- **View:** View identifier.\n- **Geometry:** Coordinates, size, scale, and other details about the view geometry.\n- **Effects:** Effects and other miscellaneous properties for the views."]]