#harmony-os #open-harmony #tracing

hitrace

Safe bindings to the HiTrace tracing system of OpenHarmony

7 releases

0.1.6 Jan 8, 2026
0.1.5 May 28, 2025
0.1.4 Apr 20, 2024

#154 in Operating systems

Download history 2199/week @ 2025-10-16 2506/week @ 2025-10-23 2408/week @ 2025-10-30 3055/week @ 2025-11-06 1887/week @ 2025-11-13 2657/week @ 2025-11-20 1781/week @ 2025-11-27 1515/week @ 2025-12-04 1768/week @ 2025-12-11 1682/week @ 2025-12-18 1403/week @ 2025-12-25 1641/week @ 2026-01-01 2357/week @ 2026-01-08 2161/week @ 2026-01-15 2553/week @ 2026-01-22 1873/week @ 2026-01-29

9,215 downloads per month

Apache-2.0

12KB
184 lines

HiTrace

Safe bindings for the HiTrace tracing system on OpenHarmony. This crate does nothing if not compiled for OpenHarmony (target_env = ohos).

Usage

HiTrace allows tracing Spans in a synchronous and stack based fashion.

Examples

fn load_website() {
    start_trace(&c"step1");
    step1();
    finish_trace();
    start_trace(&CString::new("step2").unwrap());
    step2();
    finish_trace();
}
start_trace(&c"LoadingWebsite");
load_website();
finish_trace();

HiTrace

Safe bindings for the HiTrace tracing system on OpenHarmony. This crate does nothing if not compiled for OpenHarmony (target_env = ohos).

Development

Contributions are welcome.

License

This project is licensed under the Apache-2.0 license, matching the license of OpenHarmony. See LICENSE for details.

Dependencies

~70KB