{"id":15021988,"url":"https://github.com/thoren-d/tracing-chrome","last_synced_at":"2025-04-04T15:07:58.015Z","repository":{"id":39698609,"uuid":"288929118","full_name":"thoren-d/tracing-chrome","owner":"thoren-d","description":"A library for generating chrome://tracing traces in Rust.","archived":false,"fork":false,"pushed_at":"2024-03-15T21:30:00.000Z","size":100,"stargazers_count":104,"open_issues_count":5,"forks_count":20,"subscribers_count":2,"default_branch":"develop","last_synced_at":"2025-03-28T14:08:22.392Z","etag":null,"topics":["chrome","profiling","rust","tracing"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thoren-d.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-08-20T06:48:41.000Z","updated_at":"2025-03-13T13:37:29.000Z","dependencies_parsed_at":"2024-06-19T01:39:21.698Z","dependency_job_id":"1eb7b28c-46c0-44bc-8bfa-7f66b4020b08","html_url":"https://github.com/thoren-d/tracing-chrome","commit_stats":{"total_commits":49,"total_committers":12,"mean_commits":4.083333333333333,"dds":"0.34693877551020413","last_synced_commit":"7e2625ab4aeeef2f0ef9bde9d6258dd181c04472"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thoren-d%2Ftracing-chrome","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thoren-d%2Ftracing-chrome/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thoren-d%2Ftracing-chrome/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thoren-d%2Ftracing-chrome/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thoren-d","download_url":"https://codeload.github.com/thoren-d/tracing-chrome/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247198454,"owners_count":20900080,"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":["chrome","profiling","rust","tracing"],"created_at":"2024-09-24T19:57:18.191Z","updated_at":"2025-04-04T15:07:57.992Z","avatar_url":"https://github.com/thoren-d.png","language":"Rust","funding_links":[],"categories":["Rust"],"sub_categories":[],"readme":"tracing-chrome\n======\n\n[![Crates.io](https://img.shields.io/crates/v/tracing-chrome)](https://crates.io/crates/tracing-chrome)\n[![Documentation](https://docs.rs/tracing-chrome/badge.svg)](https://docs.rs/tracing-chrome/)\n![GitHub](https://img.shields.io/github/license/Antigroup/tracing-chrome)\n![CI](https://github.com/thoren-d/tracing-chrome/workflows/CI/badge.svg?branch=develop)\n\n# Overview\n\ntracing-chrome is a Layer for [tracing-subscriber](https://crates.io/crates/tracing-subscriber) that outputs traces in Chrome's trace viewer format that can be viewed with `chrome://tracing` or [ui.perfetto.dev](https://ui.perfetto.dev).\n\n# Usage\n\nAdd this near the beginning of `main`:\n```rust\nuse tracing_chrome::ChromeLayerBuilder;\nuse tracing_subscriber::{registry::Registry, prelude::*};\n\nlet (chrome_layer, _guard) = ChromeLayerBuilder::new().build();\ntracing_subscriber::registry().with(chrome_layer).init();\n```\n\nWhen `_guard` is dropped, your trace will be in a file like `trace-1668480819035032.json`.\n\nOpen that file with [ui.perfetto.dev](https://ui.perfetto.dev) (or `chrome://tracing`) and take a look at your pretty trace.\n\n![](https://github.com/thoren-d/tracing-chrome/raw/develop/doc/images/perfetto-screenshot.png)\n\n# License\n\nLicensed under the [MIT license](http://opensource.org/licenses/MIT)\n\n## Contributions\n\nUnless you state otherwise, any contribution intentionally submitted for inclusion in the work shall be licensed as above.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthoren-d%2Ftracing-chrome","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthoren-d%2Ftracing-chrome","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthoren-d%2Ftracing-chrome/lists"}