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

2022-01-11 11:51:23 +08:00
 yhm2046

查看 log 发现启动了两次: boot_progress_preload_start boot_progress_preload_end  完整 log: https://drive.google.com/file/d/1VakMGEe_OeILmirE6Y4CuLFxrqSYJL98/view?usp=sharing, https://drive.google.com/file/d/1zFsNFyvMsLi7X9x5nBpJka0f_W-nDXxd/view?usp=sharing

1508 次点击
所在节点    程序员
3 条回复
doyer
2022-01-11 11:53:29 +08:00
期待解答
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
2022-01-11 14:19:19 +08:00

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/827523

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX