HiTrace
Overview
HiTraceMeter provides APIs for system performance tracing.
You can call the HiTraceMeter APIs in your own service logic to effectively track service processes and check the system performance.
HiTraceChain provides APIs for cross-thread and cross-process distributed tracing.
HiTraceChain generates a unique ID for a service execution process and passes it to various information (including HiTraceMeter logging, application events, and HiLog logs) specific to the service process. During debugging and fault locating, you can use the unique chain ID to quickly correlate various information related to the service process.
System capability: SystemCapability.HiviewDFX.HiTrace
Since: 10
Files
| Name | Description |
|---|---|
| trace.h | Defines APIs of the HiTraceMeter and HiTraceChain modules for performance tracing and distributed tracing. The vertical bar (|) is used as the separator in user-mode trace format. Therefore, the string parameters passed by the HiTraceMeter APIs must exclude this character to avoid trace parsing exceptions. The maximum length of a user-mode trace is 512 characters. Excess characters will be truncated. |
你可能感兴趣的鸿蒙文章
openharmony 鸿蒙 js-apis-hiviewdfx-FaultLogExtensionAbility
openharmony 鸿蒙 errorcode-hisysevent-sys
openharmony 鸿蒙 capi-hitrace-hitraceid
openharmony 鸿蒙 capi-hidebug-hidebug-threadcpuusage
openharmony 鸿蒙 js-apis-loglibrary-sys
openharmony 鸿蒙 capi-hiappevent-h
openharmony 鸿蒙 capi-hidebug-hidebug-jsstackframe