Skip to content

linebender/android_trace

Repository files navigation

Android Trace

Support for Android NDK Tracing in Rust

Linebender Zulip MIT/Apache 2.0 Build status dependency 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.

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.

Crates.io Docs tracing-subscriber version dependency status

Android Trace android_trace

Crates.io Docs dependency 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.

About

Support for Android NDK Tracing in Rust

Resources

License

MIT, Apache-2.0 licenses found

Licenses found

MIT
LICENSE-APACHE
Apache-2.0
LICENSE-MIT

Stars

Watchers

Forks

Languages