2013-12-11 33 views
8

我正在關注http://developer.android.com/tools/debugging/systrace.html,但無法在我的Moto X(KitKat)上運行systrace。有任何想法嗎?當試圖在KitKat上使用Moto X上的systrace時,獲得'Permission denied(13)'

$ python systrace.py --time=10 -o mynewtrace.html gfx view wm 


error opening /sys/kernel/debug/tracing/options/overwrite: Permission denied (13) 
error opening /sys/kernel/debug/tracing/buffer_size_kb: Permission denied (13) 
error opening /sys/kernel/debug/tracing/trace_clock: Permission denied (13) 
error opening /sys/kernel/debug/tracing/tracing_on: Permission denied (13) 
error opening /sys/kernel/debug/tracing/tracing_on: Permission denied (13) 
unable to start tracing 
error opening /sys/kernel/debug/tracing/options/overwrite: Permission denied (13) 
error opening /sys/kernel/debug/tracing/buffer_size_kb: Permission denied (13) 
error opening /sys/kernel/debug/tracing/trace_clock: Permission denied (13) 
No data was captured. Output file was not written. 
+0

你在找什麼確切的信息? – Xarus

回答

6

某些OEM廠商在幾個android版本中禁用沒有root權限的systrace。三星在Exynos Galaxy S4上採用了android 4.3。沒有關於爲什麼或者如何解決的話。

您需要根據您的設備來訪問此設備。

編輯:

作爲進一步的答案,這一點 - 與聯發科的芯片組許多設備工作在內核選項尚未啓用systrace。這是由於Mediatek未經檢查而爲具有systrace的OEM提供全面解決方案。許多OEM在收到預配置時不會更改此設置。

相關問題