{"id":19074686,"url":"https://github.com/linebender/android_trace","last_synced_at":"2025-07-01T04:36:23.257Z","repository":{"id":226635073,"uuid":"769227952","full_name":"linebender/android_trace","owner":"linebender","description":"Support for Android NDK Tracing in Rust","archived":false,"fork":false,"pushed_at":"2024-11-27T15:27:32.000Z","size":77,"stargazers_count":7,"open_issues_count":2,"forks_count":7,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-29T11:57:11.360Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/linebender.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS","dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-03-08T15:53:55.000Z","updated_at":"2025-02-19T23:07:15.000Z","dependencies_parsed_at":"2024-03-08T17:48:53.934Z","dependency_job_id":"821e2374-4446-4b69-a0ef-ee7959855b0c","html_url":"https://github.com/linebender/android_trace","commit_stats":null,"previous_names":["djmcnab/android_trace"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linebender%2Fandroid_trace","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linebender%2Fandroid_trace/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linebender%2Fandroid_trace/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linebender%2Fandroid_trace/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/linebender","download_url":"https://codeload.github.com/linebender/android_trace/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251498964,"owners_count":21598979,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-09T01:52:00.997Z","updated_at":"2025-07-01T04:36:23.245Z","avatar_url":"https://github.com/linebender.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n# Android Trace\n\n**Support for Android [NDK Tracing][] in Rust**\n\n[![Linebender Zulip](https://img.shields.io/badge/Linebender-%23general%20%3E%20Android%20Tracing-blue?logo=Zulip)](https://xi.zulipchat.com/#narrow/channel/147921-general/topic/Android.20Tracing/with/457019334)\n[![MIT/Apache 2.0](https://img.shields.io/badge/license-MIT%2FApache-blue.svg)](#license)\n[![Build status](https://github.com/linebender/android_trace/workflows/CI/badge.svg)](https://github.com/linebender/android_trace/actions)\n[![Dependency staleness status.](https://deps.rs/repo/github/linebender/android_trace/status.svg)](https://deps.rs/repo/github/linebender/android_trace)\n\n\u003c/div\u003e\n\n⚠️ Android Trace only support Android\n\nThis repository contains two crates for working with Android NDK Tracing.\nThe most useful of these is likely to be the higher level Tracing Android Trace,\nwhich depends on the lower level Android Trace.\n\n\u003cfigure\u003e\n\u003cimg src=\"https://github.com/linebender/android_trace/assets/36049421/a7f03b74-d690-42be-91b5-326fbb698a03\" alt=\"Screenshot showing a thread timeline including spans of a single thread.\"\u003e\n\u003cfigcaption\u003e\n\nTracing spans for [Vello](https://github.com/linebender/vello) shown in Android GPU Inspector, created using Tracing Android Trace.\n\u003c/figcaption\u003e\n\u003c/figure\u003e\n\nSignificant changes are documented in [the changelog].\n\n## Tracing Android Trace [tracing_android_trace](./tracing_android_trace)\n\nTracing Android Trace provides several [`tracing_subscriber::Layer`][]s for Android NDK Tracing, using `ATrace_beginSection` and `ATrace_endSection`.\nThis allows viewing spans created using the [`tracing`][] macros in [Android GPU Inspector](https://gpuinspector.dev/).\n\n[![Latest published version.](https://img.shields.io/crates/v/tracing_android_trace.svg)](https://crates.io/crates/tracing_android_trace)\n[![Documentation build status.](https://img.shields.io/docsrs/tracing_android_trace.svg)](https://docs.rs/tracing_android_trace)\n[![Dependency staleness status.](https://deps.rs/crate/tracing_android_trace/latest/status.svg)](https://deps.rs/crate/tracing_android_trace)\n[![tracing-subscriber version](https://img.shields.io/badge/tracing--subscriber-v0.3.18-a674e5.svg)](https://crates.io/crates/tracing-subscriber)\n\n## Android Trace [android_trace](./android_trace)\n\n[![Latest published version.](https://img.shields.io/crates/v/android_trace.svg)](https://crates.io/crates/android_trace)\n[![Documentation build status.](https://img.shields.io/docsrs/android_trace.svg)](https://docs.rs/android_trace)\n[![Dependency staleness status.](https://deps.rs/crate/android_trace/latest/status.svg)](https://deps.rs/crate/android_trace)\n\nAndroid Trace provides access to the Android NDK Tracing methods, such as `ATrace_beginSection` and `ATrace_endSection`.\n\n## Community\n\nDiscussion of Android Trace development happens in the [Linebender Zulip](https://xi.zulipchat.com/), specifically in\n[#general \u003e Android Tracing](https://xi.zulipchat.com/#narrow/channel/147921-general/topic/Android.20Tracing/with/457019334).\nAll public content can be read without logging in.\n\nContributions are welcome by pull request. The [Rust code of conduct][] applies.\n\n## License\n\nLicensed under either of\n\n * Apache License, Version 2.0\n   ([LICENSE-APACHE](LICENSE-APACHE) or \u003chttp://www.apache.org/licenses/LICENSE-2.0\u003e)\n * MIT license\n   ([LICENSE-MIT](LICENSE-MIT) or \u003chttp://opensource.org/licenses/MIT\u003e)\n\nat your option.\n\n## Contribution\n\nUnless you explicitly state otherwise, any contribution intentionally submitted\nfor inclusion in the work by you, as defined in the Apache-2.0 license, shall be\ndual licensed as above, without any additional terms or conditions.\n\n[`tracing`]: https://docs.rs/tracing/latest/tracing/\n[rust code of conduct]: https://www.rust-lang.org/policies/code-of-conduct\n[NDK Tracing]: https://developer.android.com/ndk/reference/group/tracing\n[`tracing_subscriber::Layer`]: https://docs.rs/tracing-subscriber/latest/tracing_subscriber/layer/trait.Layer.html\n[the changelog]: CHANGELOG.md\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinebender%2Fandroid_trace","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flinebender%2Fandroid_trace","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinebender%2Fandroid_trace/lists"}