当前位置:网站首页>chrome://tracing Performance analysis artifact
chrome://tracing Performance analysis artifact
2022-06-12 13:54:00 【123axj】
stay Soc In performance analysis , Often need to see some master or slave Of busy / idle Status proportion , If you can see each as you can see the waveform master/slave Status in various time periods , In this way, performance bottlenecks can be seen very intuitively .
Chrome Provides a visual trace viewer Tools can achieve this effect .
Reference resources https://limboy.me/2020/03/21/chrome-trace-viewer/
stay chrome Browser input chrome://tracing/ You can open this tool , then load Yours json file , You can check the waveform .Json File format , You can also refer to https://docs.google.com/document/d/1CvAClvFfyA5R-PhYUmn5OOQtYMH4h6I0nSsKchNAySU/edit#
In the following example ,
"name": " rest ", // Event name , It will show in timeline On "cat": " test ", // Event classification , similar Tag, When you select an event , Show... In the lower tab "ph": "X", // phase, Commonly used B / E / X / M, respectively begin /end / complete / metadata event "ts": 0, // event The moment when it began to happen "pid": 0, // process id "tid": 1, // thread id "dur": 28800000000, // duration, Follow phase X Use it with , Indicates the duration of the event "args": { "duration_hour": 8, "start_hour": 0}} // Additional parameters , When selecting an event , Show... In the lower tab
|
Be careful :
1. ts and dur The time unit of is Microsecond (us).
2. If phase by M, be name Can only be 5 One of them .

[
{"name": " rest ", "cat": " test ", "ph": "X", "ts": 0, "pid": 0, "tid": 1, "dur": 28800000000, "args": {"duration_hour": 8, "start_hour": 0}},
{"name": " Study ", "cat": " test ", "ph": "X", "ts": 28800000000, "pid": 0, "tid": 1, "dur":3600000000 , "args": {"duration_hour": 1, "start_hour": 8}},
{"name": " rest ", "cat": " test ", "ph": "X", "ts": 0, "pid": 0, "tid": 2, "dur": 21600000000} ,
{"name": "process_name", "ph": "M", "pid": 0, "args": {"name": " One week time management "}},
{"name": "thread_name", "ph": "M", "pid": 0, "tid": 1, "args": {"name": " The first day "}},
{"name": "thread_name", "ph": "M", "pid": 0, "tid": 2, "args": {"name": " the second day "}}
]
Sometimes , Will see in json The file begins with "displayTimeUnit", You can select... In the document ms and ns, But I tried , As if ts and duration The time unit of is still us.
{ "displayTimeUnit": "ms", "traceEvents":[ ….. ]} |

边栏推荐
- Cocoapods的相关知识点
- Introduction to color coding format
- Fourteen week assignment
- 【mysql进阶】mysql索引数据结构的演变(四)
- Convert the string to hexadecimal string and display it
- Codeforces 1637 B. mex and array - reading, violence
- 【mysql进阶】查询优化原理与方案(六)
- Debug code to quickly locate the error location
- Codeforces 1629 A. download more RAM - simple greed
- Now you must know the pointer
猜你喜欢

事件的传递和响应以及使用实例

Behind the unsealing of Shanghai, this group of developers "cloud gathering" built an AI anti epidemic robot

Introduction to database system (Fifth Edition) notes Chapter 1 Introduction

Codeforces 1637 D. yet another minimization problem - Mathematics, DP

Talk about the top 10 classic MySQL errors

Transmission and response of events and use cases

【mysql进阶】索引分类及索引优化方案(五)

Now you must know the pointer

Alibaba Cloud Development Board haas510 submission Device Properties

Encryptor and client authenticate with each other
随机推荐
Codeforces 1637 A. sorting parts - simple thinking
Go language functions as parameters of functions
one × Convolution kernel of 1
MySQL 查询 limit 1000,10 和 limit 10 速度一样快吗? 深度分页如何破解
Dial up and Ethernet
Debug code to quickly locate the error location
AVFoundation
[wustctf2020] selfie score query -1
Application of short circuit expression (||) in C language
Codeforces 1634 F. Fibonacci additions - Fibonacci sequence addition, ideas
十四周作业
Codeforces 1638 A. reverse - simple thinking
将字符串转为16进制字符串并显示出来
Cmake basic tutorial - 01 a-hello-cmake
颜色编码格式介绍
FFmpeg 学习指南
Codeforces 1629 E. grid XOR - simple thinking
Chapter IV expression
Alibaba cloud development board haas510 connects to the Internet of things platform -- Haas essay solicitation
Codeforces 1637 D. yet another minimization problem - Mathematics, DP