hitrace_sys/lib.rs
1//! Raw bindings for the [`HiTrace`] tracing system on OpenHarmony
2//!
3//! The official [Hitrace NDK guidelines] describe the available API.
4//! Rust users should likely not use this crate directly, but instead use an abstraction on
5//! top of this crate.
6//!
7//! [`HiTrace`]: https://gitcode.com/openharmony/hiviewdfx_hitrace
8//! [Hitrace NDK guidelines]: https://gitcode.com/openharmony/docs/blob/master/zh-cn/application-dev/dfx/hitracemeter-guidelines-ndk.md
9//!
10//! ## Feature flags
11#![cfg_attr(
12 feature = "document-features",
13 cfg_attr(doc, doc = ::document_features::document_features!())
14)]
15#![cfg_attr(docsrs, feature(doc_cfg))]
16
17#[link(name = "hitrace_ndk.z")]
18extern "C" {}
19
20mod hitrace_ffi;
21pub use hitrace_ffi::*;