성능 측정
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
Android 8.0 (API 수준 26) 이상에서는 일부 미디어 클래스에서 getMetrics()
메서드를 사용할 수 있습니다. 이 메서드는 속성과 값의 맵으로 표현되는 구성 및 성능 정보가 포함된 PersistableBundle
객체를 반환합니다.
getMetrics()
메서드는 다음 미디어 클래스에 관해 정의됩니다.
측정항목은 각 인스턴스에 대해 개별적으로 수집되며 인스턴스 수명 동안 지속됩니다. 사용할 수 있는 측정항목이 없으면 메서드는 null을 반환합니다. 반환되는 실제 측정항목은 클래스에 따라 다릅니다.
ExoPlayer를 사용한 분석
ExoPlayer에는 재생 데이터를 수집하고 처리하는 데 도움이 되는 도구가 포함되어 있습니다. 자세한 내용은 애널리틱스 개발자 가이드를 참고하세요.
이 페이지에 나와 있는 콘텐츠와 코드 샘플에는 콘텐츠 라이선스에서 설명하는 라이선스가 적용됩니다. 자바 및 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,["# Measuring performance\n\nIn Android 8.0 (API level 26) and later, the `getMetrics()` method is available\nfor some media classes. It returns a\n[PersistableBundle](/reference/android/os/PersistableBundle)\nobject containing configuration\nand performance information, expressed as a map of attributes and values.\nThe `getMetrics()` method is defined for these media classes:\n\n- [MediaPlayer.getMetrics()](/reference/android/media/MediaPlayer#getMetrics())\n- [MediaRecorder.getMetrics()](/reference/android/media/MediaRecorder#getMetrics())\n- [MediaCodec.getMetrics()](/reference/android/media/MediaCodec#getMetrics())\n- [MediaExtractor.getMetrics()](/reference/android/media/MediaExtractor#getMetrics())\n\nMetrics are collected separately for each instance and persist for the\nlifetime of the instance. If no metrics are available the method returns\nnull. The actual metrics returned depend on the class.\n\nAnalytics with ExoPlayer\n------------------------\n\nExoPlayer includes tools to help you collect and process playback data. Learn\nmore in the developer guide for\n[analytics](/guide/topics/media/exoplayer/analytics)."]]