harmony 鸿蒙HiTraceId

  • 2025-06-12
  • 浏览 (7)

HiTraceId

Overview

Defines a HiTraceId instance.

System capability: SystemCapability.HiviewDFX.HiTrace

Since: 12

Related module: Hitrace

Header file: trace.h

Summary

Member Variables

A little-endian HiTraceId consists of the following fields in sequence:

Field Number of Bits Description
uint64_t valid 1 Whether HiTraceId is valid.
uint64_t ver 3 Version number of HiTraceId.
uint64_t chainId 60 Chain ID of HiTraceId.
uint64_t flags 12 Flag of HiTraceId.
uint64_t spanId 26 Span ID of HiTraceId.
uint64_t parentSpanId 26 Parent span ID of HiTraceId.

A big-endian HiTraceId consists of the following fields in sequence:

Field Number of Bits Description
uint64_t chainId 60 Chain ID of HiTraceId.
uint64_t ver 3 Version number of HiTraceId.
uint64_t valid 1 Whether HiTraceId is valid.
uint64_t parentSpanId 26 Parent span ID of HiTraceId.
uint64_t spanId 26 Span ID of HiTraceId.
uint64_t flags 12 Flag of HiTraceId.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Performance Analysis Kit

harmony 鸿蒙Performance Analysis Kit

harmony 鸿蒙HiAppEvent

harmony 鸿蒙HiAppEvent_AppEventGroup

harmony 鸿蒙HiAppEvent_AppEventInfo

harmony 鸿蒙HiCollie

harmony 鸿蒙HiCollie_DetectionParam

harmony 鸿蒙HiCollie_SetTimerParam

harmony 鸿蒙HiDebug

harmony 鸿蒙HiDebug_MemoryLimit

0  赞