# Android Studio: Profiler → System Trace# 또는 명령행:
adb shell perfetto --txt -c - --out /data/misc/perfetto-traces/trace -t 10s sched freq idle am wm gfx view binder_driver hal dalvik camera input res memory <<<''
Custom trace section (Android)
importandroidx.tracing.TraceTrace.beginSection("loadHomeFeed")valitems=repo.loadFeed()Trace.endSection()// 또는 inline
Trace.beginAsyncSection("download:image:42",42)download(url){Trace.endAsyncSection("download:image:42",42)}
iOS — Instruments
Xcode → Product → Profile (⌘I) →
- Time Profiler: 시간 소요 함수
- Animation Hitches: 60fps 깬 frame
- SwiftUI: View 재계산
- Network: 요청 latency
- Allocations: 메모리