Skip to content

Support for Android NDK Tracing in Rust

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

linebender/android_trace

Repository files navigation

Android Trace

Support for Android NDK Tracing in Rust

Linebender Zulip MIT/Apache 2.0 Build status Dependency staleness status.

⚠️ Android Trace only support Android

This repository contains two crates for working with Android NDK Tracing. The most useful of these is likely to be the higher level Tracing Android Trace, which depends on the lower level Android Trace.

Screenshot showing a thread timeline including spans of a single thread.

Tracing spans for Vello shown in Android GPU Inspector, created using Tracing Android Trace.

Significant changes are documented in the changelog.

Tracing Android Trace tracing_android_trace

Tracing Android Trace provides several tracing_subscriber::Layers for Android NDK Tracing, using ATrace_beginSection and ATrace_endSection. This allows viewing spans created using the tracing macros in Android GPU Inspector.

Latest published version. Documentation build status. Dependency staleness status. tracing-subscriber version

Android Trace android_trace

Latest published version. Documentation build status. Dependency staleness status.

Android Trace provides access to the Android NDK Tracing methods, such as ATrace_beginSection and ATrace_endSection.

Community

Discussion of Android Trace development happens in the Linebender Zulip, specifically in #general > Android Tracing. All public content can be read without logging in.

Contributions are welcome by pull request. The Rust code of conduct applies.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.