V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
yhm2046
V2EX  ›  程序员

请问 android10 系统启动两次 Zygote 是什么原因?

  •  
  •   yhm2046 · 2022-01-11 11:51:23 +08:00 · 1479 次点击
    这是一个创建于 807 天前的主题,其中的信息可能已经有所发展或是发生改变。
    3 条回复    2022-01-11 14:19:19 +08:00
    doyer
        1
    doyer  
       2022-01-11 11:53:29 +08:00
    期待解答
    joydee
        2
    joydee  
       2022-01-11 14:13:36 +08:00
    1. 查看源码 perfboot.py( https://cs.android.com/android/platform/superproject/+/master:system/core/init/perfboot.py)里面有个"output_results(filename, record_list, tags)函数",其中 Comments 部分说明的比较详细:
    ` # First, count the number of the values of each tag.
    # This is for dealing with events that occur multiple times.
    # For instance, boot_progress_preload_start and boot_progress_preload_end
    # are recorded twice on 64-bit system. One is for 64-bit zygote process
    # and the other is for 32-bit zygote process.
    `
    jeepc
        3
    jeepc  
       2022-01-11 14:19:19 +08:00
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   979 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 21:57 · PVG 05:57 · LAX 14:57 · JFK 17:57
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.