Hi,Kyson

Sign in

这是第一个博客内容

这是标题

这是正文

这是代码

new Java();


总体流程

三部分

1. App进程

2. PC脚本

3. Android系统服务

![systrace_framework](./systrace_framework.png)

## PC脚本

systrace.py中指定运行systrace\catapult\systrace\systrace\run_systrace.py

```python

def main_impl(arguments):

controller.StartTracing()

controller.StopTracing()

```

systrace\catapult\systrace\systrace\tracing_controller.py

开启controller agent和child agent

child agent固定有这些,会根据传入的参数从这里选择有效的模块

AGENT_MODULES = [android_process_data_agent, android_cgroup_agent,

atrace_agent, atrace_from_file_agent, atrace_process_dump,

ftrace_agent, walt_agent]…


This is a story

Hi,Kyson

Android Developer

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store