harmony(鸿蒙)Overview of Performance Tracing
Overview of Performance Tracing
hiTraceMeter is a tool for you to trace service processes and monitor system performance. Through encapsulating and extending the ftrace inside the kernel, hiTraceMeter supports performance tracing for code execution in the user space. You can use hiTraceMeter APIs to implement performance tracing and use the hiTraceMeter CLI tool to collect traced data.
Basic Concepts
- hiTraceMeter Tag
Tag used for tracing data categorization. It is also known as hiTraceMeter Category. Generally, one subsystem maps to a tag. The tag is passed as the Tag parameter in performance tracing APIs. When you use the hiTraceMeter CLI tool to collect tracing data, only the tracing data specified by the Tag parameter is collected.
Working Principles
- The application calls hiTraceMeter APIs to perform performance tracing. The APIs output the tracing data to the kernel’s ftrace data buffer through the kernel’s sysfs file interface.
- The hiTraceMeter CLI tool reads the tracing data in the ftrace data buffer and saves the trace data as a text file on the device.
Constraints
Due to the asynchronous I/O feature of JS, the hiTraceMeter module provides only asynchronous APIs.
你可能感兴趣的鸿蒙文章
harmony(鸿蒙)Development of Error Manager
harmony(鸿蒙)Development of Application Event Logging
harmony(鸿蒙)Overview of Application Event Logging
harmony(鸿蒙)Development of Distributed Call Chain Tracing
- 所属分类: 后端技术
- 本文标签:
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
8、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦