Google uses AI technology to translate content into your preferred language. AI translations can contain errors.
本機剖析的偵錯指令
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
使用 ProfilingManager 最有效的方式是收集公開使用者的設定檔,但您可能需要先偵錯設定或記錄本機設定檔以進行調查。您可能已經發現,有時系統不會記錄設定檔,這通常是因為速率限制所致。詳情請參閱「速率限制的運作方式」。
您可以使用 adb 指令,在本機調整特定偵錯設定。您可以使用下列設定,協助進行本機剖析。
停用速率限制器
使用 ProfilingManager 在本機執行時,下列指令特別實用。這會停用應用程式程序和系統速率限制器,指示 ProfilingManager 滿足所有設定檔要求,且不會受到節流。
adb shell device_config put profiling_testing rate_limiter.disabled true
保留未經過編輯的追蹤記錄
下列指令可讓您在 /data/misc/perfetto-traces/profiling/<trace-name>.perfetto-trace-unredacted 的暫時目錄中保留未經過修訂的追蹤記錄版本。未經過編輯的追蹤記錄提供的系統層級資訊比經過編輯的追蹤記錄更多,
這對深入調查至關重要。
adb shell device_config put profiling_testing delete_temporary_results.disabled true
基於隱私考量,這項功能僅適用於本機剖析,且預設為停用。
這個頁面中的內容和程式碼範例均受《內容授權》中的授權所規範。Java 與 OpenJDK 是 Oracle 和/或其關係企業的商標或註冊商標。
上次更新時間:2025-07-29 (世界標準時間)。
[[["容易理解","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-29 (世界標準時間)。"],[],[]]