Android JIT編譯:adb shell cmd package compile選項

Android JIT編譯:adb shell cmd package compile選項

例如:

adb shell cmd package compile -m speed -f --full 包名

配置參數指令說明:

? compile [-r COMPILATION_REASON] [-m COMPILER_FILTER] [-p PRIORITY] [-f]
? ? ? [--primary-dex] [--secondary-dex] [--include-dependencies] [--full]
? ? ? [--split SPLIT_NAME] [--reset] [-a | PACKAGE_NAME]
? ? Dexopt a package or all packages.
? ? Options:
? ? ? -a Dexopt all packages
? ? ? -r Set the compiler filter and the priority based on the given
? ? ? ? ?compilation reason.
? ? ? ? ?Available options: 'first-boot', 'boot-after-ota',
? ? ? ? ?'boot-after-mainline-update', 'install', 'bg-dexopt', 'cmdline'.
? ? ? -m Set the target compiler filter. The filter actually used may be
? ? ? ? ?different, e.g. 'speed-profile' without profiles present may result in
? ? ? ? ?'verify' being used instead. If not specified, this defaults to the
? ? ? ? ?value given by -r, or the system property 'pm.dexopt.cmdline'.
? ? ? ? ?Available options (in descending order): 'speed', 'speed-profile',
? ? ? ? ?'verify'.
? ? ? -p Set the priority of the operation, which determines the resource usage
? ? ? ? ?and the process priority. If not specified, this defaults to
? ? ? ? ?the value given by -r, or 'PRIORITY_INTERACTIVE'.
? ? ? ? ?Available options (in descending order): 'PRIORITY_BOOT',
? ? ? ? ?'PRIORITY_INTERACTIVE_FAST', 'PRIORITY_INTERACTIVE',
? ? ? ? ?'PRIORITY_BACKGROUND'.
? ? ? -f Force dexopt, also when the compiler filter being applied is not
? ? ? ? ?better than that of the current dexopt artifacts for a package.
? ? ? --reset Reset the dexopt state of the package as if the package is newly
? ? ? ? ?installed.
? ? ? ? ?More specifically, it clears reference profiles, current profiles, and
? ? ? ? ?any code compiled from those local profiles. If there is an external
? ? ? ? ?profile (e.g., a cloud profile), the code compiled from that profile
? ? ? ? ?will be kept.
? ? ? ? ?For secondary dex files, it also clears all dexopt artifacts.
? ? ? ? ?When this flag is set, all the other flags are ignored.
? ? ? -v Verbose mode. This mode prints detailed results.
? ? ? --force-merge-profile Force merge profiles even if the difference between
? ? ? ? ?before and after the merge is not significant.
? ? Scope options:
? ? ? --primary-dex Dexopt primary dex files only (all APKs that are installed
? ? ? ? as part of the package, including the base APK and all other split
? ? ? ? APKs).
? ? ? --secondary-dex Dexopt secondary dex files only (APKs/JARs that the app
? ? ? ? puts in its own data directory at runtime and loads with custom
? ? ? ? classloaders).
? ? ? --include-dependencies Include dependency packages (dependencies that are
? ? ? ? declared by the app with <uses-library> tags and transitive
? ? ? ? dependencies). This option can only be used together with
? ? ? ? '--primary-dex' or '--secondary-dex'.
? ? ? --full Dexopt all above. (Recommended)
? ? ? --split SPLIT_NAME Only dexopt the given split. If SPLIT_NAME is an empty
? ? ? ? string, only dexopt the base APK.
? ? ? ? Tip: To pass an empty string, use a pair of quotes ("").
? ? ? ? When this option is set, '--primary-dex', '--secondary-dex',
? ? ? ? '--include-dependencies', '--full', and '-a' must not be set.
? ? ? Note: If none of the scope options above are set, the scope defaults to
? ? ? '--primary-dex --include-dependencies'.
??
? delete-dexopt PACKAGE_NAME
? ? Delete the dexopt artifacts of both primary dex files and secondary dex
? ? files of a package.
??
? bg-dexopt-job [--cancel | --disable | --enable]
? ? Control the background dexopt job.
? ? Without flags, it starts a background dexopt job immediately and waits for
? ? ? it to finish. If a job is already started either automatically by the
? ? ? system or through this command, it will wait for the running job to
? ? ? finish and then start a new one.
? ? Different from 'pm compile -r bg-dexopt -a', the behavior of this command
? ? is the same as a real background dexopt job. Specifically,
? ? ? - It only dexopts a subset of apps determined by either the system's
? ? ? ? default logic based on app usage data or the custom logic specified by
? ? ? ? the 'ArtManagerLocal.setBatchDexoptStartCallback' Java API.
? ? ? - It runs dexopt in parallel, where the concurrency setting is specified
? ? ? ? by the system property 'pm.dexopt.bg-dexopt.concurrency'.
? ? ? - If the storage is low, it also downgrades unused apps.
? ? ? - It also cleans up obsolete files.
? ? Options:
? ? ? --cancel Cancel any currently running background dexopt job immediately.
? ? ? ? This cancels jobs started either automatically by the system or through
? ? ? ? this command. This command is not blocking.
? ? ? --disable: Disable the background dexopt job from being started by the
? ? ? ? job scheduler. If a job is already started by the job scheduler and is
? ? ? ? running, it will be cancelled immediately. Does not affect jobs started
? ? ? ? through this command or by the system in other ways.
? ? ? ? This state will be lost when the system_server process exits.
? ? ? --enable: Enable the background dexopt job to be started by the job
? ? ? ? scheduler again, if previously disabled by --disable.
? ? When a list of package names is passed, this command does NOT start a real
? ? background dexopt job. Instead, it dexopts the given packages sequentially.
? ? This usage is deprecated. Please use 'pm compile -r bg-dexopt PACKAGE_NAME'
? ? instead.

Android JIT( ART即時編譯器),Just In Time Compiler,即時編譯技術-CSDN博客文章瀏覽閱讀560次,點贊6次,收藏6次。Android Runtime (ART) 包含一個具備代碼分析功能的即時 (JIT) 編譯器,該編譯器可以在 Android 應用運行時持續提高其性能。JIT是Just In Time Compiler,即時編譯技術。JIT:以下是 ART 實現的一些主要功能。ART 引入了預先編譯機制,可提高應用的性能。ART 還具有比 Dalvik 更嚴格的安裝時驗證。在安裝時,ART 使用設備自帶的 dex2oat 工具來編譯應用。 https://blog.csdn.net/zhangphil/article/details/147520790

本文來自互聯網用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務,不擁有所有權,不承擔相關法律責任。
如若轉載,請注明出處:http://www.pswp.cn/news/903760.shtml
繁體地址,請注明出處:http://hk.pswp.cn/news/903760.shtml
英文地址,請注明出處:http://en.pswp.cn/news/903760.shtml

如若內容造成侵權/違法違規/事實不符,請聯系多彩編程網進行投訴反饋email:809451989@qq.com,一經查實,立即刪除!

相關文章

Android Kotlin 項目集成 Firebase Cloud Messaging (FCM) 全攻略

Firebase Cloud Messaging (FCM) 是 Google 提供的跨平臺消息推送解決方案。以下是在 Android Kotlin 項目中集成 FCM 的詳細步驟。 一、前期準備 1. 創建 Firebase 項目 訪問 Firebase 控制臺點擊"添加項目"&#xff0c;按照向導創建新項目項目創建完成后&#x…

搭建PCDN大節點,服務器該怎么配

搭建P2P大節點時&#xff0c;服務器要怎么配呢&#xff1f;需要綜合考慮硬件性能、網絡帶寬、存儲能力、系統架構以及安全性等多個方面&#xff0c;以確保節點能夠高效、穩定地運行。 一、硬件配置 CPU&#xff1a;選擇高性能的多核處理器&#xff0c;以滿足高并發處理需求。核…

(done) 吳恩達版提示詞工程 8. 聊天機器人 (聊天格式設計,上下文內容,點餐機器人)

視頻&#xff1a;https://www.bilibili.com/video/BV1Z14y1Z7LJ/?spm_id_from333.337.search-card.all.click&vd_source7a1a0bc74158c6993c7355c5490fc600 別人的筆記&#xff1a;https://zhuanlan.zhihu.com/p/626966526 8. 聊天機器人&#xff08;Chatbot&#xff09; …

AtCoder Beginner Contest 403(題解ABCDEF)

A - Odd Position Sum #1.奇數數位和 #include<iostream> #include<vector> #include<stdio.h> #include<map> #include<string> #include<algorithm> #include<queue> #include<cstring> #include<stack> #include&l…

【Game】Powerful——Abandoned Ruins(9)

文章目錄 1、新增古玩2、機關機制3、探索法寶4、智斗強敵5、地圖6、參考 2025 年 1 月迎來的新玩法——荒廢遺跡 每周四個寶藏鏟&#xff08;老玩法&#xff09;或者兩個遺跡線索&#xff08;新玩法&#xff09;&#xff0c;3 個寶藏鏟也可以換一個遺跡線索&#xff0c;之前沒時…

構建網頁版IPFS去中心化網盤

前言&#xff1a;我把它命名為無限網盤 Unlimited network disks&#xff08;ULND&#xff09;&#xff0c;可以實現簡單的去中心化存儲&#xff0c;其實實現起來并不難&#xff0c;還是依靠強大的IPFS&#xff0c;跟著我一步一步做就可以了。 第一步&#xff1a;準備開發環境…

國標GB28181視頻平臺EasyGBS在物業視頻安防管理服務中的應用方案?

一、方案背景? 在現代物業服務中&#xff0c;高效的安全管理與便捷的服務運營至關重要。隨著科技的不斷發展&#xff0c;物業行業對智能化、集成化管理系統的需求日益增長。EasyGBS作為一款基于國標GB28181協議的視頻監控平臺&#xff0c;具備強大的視頻管理與集成能力&#…

[Unity]設置自動打包腳本

背景 我們經常會使用自動打包功能 文件名稱: AutoBuild.csusing System.IO; using System.Linq; using UnityEditor; using UnityEngine;public class AutoBuilder {[MenuItem("Build/GetCurrentBuildTarget")]public static void GetCurrentBuildTarget(){Debug.L…

正點原子STM32H743單片機實現ADC多通道檢測

目標 使用STM32CubeMX工具&#xff0c;配置ADC相關參數&#xff0c;實現在STM32H743單片機上獲取ADC多通道電壓值。共14個ADC引腳&#xff0c;ADC2有5個&#xff0c;ADC3有9個&#xff0c;全部設置單通道 ADC引腳 PF3PF4PF5PF10PC0PC2PC3PH2PH3PA3PB0PB1PA4PA5PA6 STM32cube…

深度學習基礎(四)——計算量(FLOPs)、參數量(Params)、計算速度(FLOPS/TOPS))

一、計算量FLOPs FLOPs&#xff0c;全稱為Floating Point Operations, (s為復數縮寫&#xff09;&#xff0c;浮點運算數&#xff0c;指模型完成一次前向傳播所需的浮點運算次數&#xff0c;可以理解為計算量&#xff08;模型的時間復雜度&#xff09;&#xff0c;用來衡量算法…

電子秤檢測管理系統開發實戰:從數據采集到可視化大屏

簡介 電子秤作為現代工業生產和商業流通中的核心計量設備,其準確性直接關系到產品質量和交易公平。針對仙貝生產企業的電子秤管理需求,我們開發了一套集電子秤檢測信息錄入、產品信息管理、實時稱重數據采集和后臺可視化大屏于一體的綜合管理系統。該系統基于Django框架構建…

Cesium添加WMS,WMTS,地形圖圖,3D Tiles數據

在 Cesium 中&#xff0c;你可以添加 WMS、WMTS、地形圖 和 3D Tiles 數據源。以下是詳細的實現方法&#xff1a; 1. 添加 WMS 服務 WMS&#xff08;Web Map Service&#xff09;是一種動態地圖服務&#xff0c;適用于加載柵格地圖圖層。 代碼示例 const viewer new Cesium…

數據庫基本概念:數據庫的定義、特點、分類、組成、作用

一&#xff1a;數據庫相關概念 1.1 定義 &#xff08;1&#xff09;數據庫&#xff1a;存儲數據的倉庫 &#xff08;2&#xff09;數據庫管理系統&#xff1a;模擬和管理數據庫的大型軟件 &#xff08;3&#xff09;SQL&#xff1a;操作關系型數據庫的編程語言&#xff0c;定義…

【項目篇之消息序列化】仿照RabbitMQ模擬實現消息隊列

實現消息序列化 為什么不使用JSON來序列化直接使用二進制序列化實現序列化方法toBytes()1&#xff1a; 創建內存緩沖區??2 &#xff1a;創建對象序列化通道?3&#xff1a;執行序列化操作?4&#xff1a;提取二進制數據&#xff0c;轉換成byte[]序列化圖示流程&#xff1a;序…

單片機-89C51部分:13、看門狗

飛書文檔https://x509p6c8to.feishu.cn/wiki/LefkwDPU7iUUWBkfKE9cGLvonSh 一、作用 程序發生死循環的時候&#xff08;跑飛&#xff09;&#xff0c;能夠自動復位。 啟動看門狗計數器->計數器計數->指定時間內不對計數器賦值&#xff08;主程序跑飛&#xff0c;無法喂…

C++23/26 靜態反射機制深度解析:編譯時元編程的新紀元

目錄 引言 一、C靜態反射的核心特性 1. 編譯時元數據獲取 2. 元信息操作的語法革新 3. 與現有特性的深度融合 二、應用場景&#xff1a;從理論到實踐 1. 序列化與反序列化 2. 領域特定語言&#xff08;DSL&#xff09;與代碼生成 3. 動態插件系統 4. 調試與元編程增強…

RISCV學習(5)GD32VF103 MCU架構了解

RISCV學習&#xff08;5&#xff09;GD32VF103 MCU架構了解 1、芯片內核功能簡介 GD32VF103 MCU架構&#xff0c;采用Bumblebee內核&#xff0c;芯來科技&#xff08;Nuclei System Technology&#xff09;與臺灣晶心科技&#xff08;Andes Technology&#xff09;聯合開發&am…

【Java學習筆記】遞歸

遞歸&#xff08;recursion&#xff09; 思想&#xff1a;把一個復雜的問題拆分成一個簡單問題和子問題&#xff0c;子問題又是更小規模的復雜問題&#xff0c;循環往復 本質&#xff1a;棧的使用 遞歸的注意事項 &#xff08;1&#xff09;需要有遞歸出口&#xff0c;否者就…

滲透測試中的那些“水洞”:分析與防御

1. Nginx 版本泄露 風險分析&#xff1a; Nginx 默認會在響應頭中返回 Server: nginx/x.x.x&#xff0c;攻擊者可利用該信息匹配已知漏洞進行攻擊。 防御措施&#xff1a; 修改 nginx.conf 配置文件&#xff0c;隱藏版本信息&#xff1a;server_tokens off;使用 WAF 進行信息…

基于C#開發的適合Windows開源文件管理器

使用DDD從零構建一個完整的系統 推薦一個功能強大且直觀的開源文件管理器&#xff0c;適用于Windows平臺。 01 項目簡介 該項目是一個基于C#開發、開源的文件管理器&#xff0c;適用于Windows&#xff0c;界面UI美觀、方便輕松瀏覽文件。此外&#xff0c;支持創建和提取壓縮…