Loading...
Loading...
Compare original and translation side by side
xctracexctraceundefinedundefined
2) Record Time Profiler (launch):
```bash
xcrun xctrace record --template 'Time Profiler' --time-limit 90s --output /tmp/App.trace --launch -- /path/App.app/Contents/MacOS/Appscripts/extract_time_samples.py --trace /tmp/App.trace --output /tmp/time-sample.xmlundefined
2) 录制Time Profiler(启动应用):
```bash
xcrun xctrace record --template 'Time Profiler' --time-limit 90s --output /tmp/App.trace --launch -- /path/App.app/Contents/MacOS/Appscripts/extract_time_samples.py --trace /tmp/App.trace --output /tmp/time-sample.xmlundefined
5) Symbolicate + rank hotspots:
```bash
scripts/top_hotspots.py --samples /tmp/time-sample.xml \
--binary /path/App.app/Contents/MacOS/App \
--load-address 0x100000000 --top 30
5) 符号化并排序性能热点:
```bash
scripts/top_hotspots.py --samples /tmp/time-sample.xml \
--binary /path/App.app/Contents/MacOS/App \
--load-address 0x100000000 --top 30--launchxcrun xctrace help recordxcrun xctrace help export--launchxcrun xctrace help recordxcrun xctrace help exportscripts/record_time_profiler.shscripts/extract_time_samples.pyscripts/top_hotspots.pyscripts/record_time_profiler.shscripts/extract_time_samples.pyscripts/top_hotspots.py__TEXTvmmap--binaryatosvmmap__TEXT--binaryatos