{"id":17036511,"url":"https://github.com/emoon/remotery-rs","last_synced_at":"2025-04-12T12:32:22.194Z","repository":{"id":40499686,"uuid":"63342546","full_name":"emoon/remotery-rs","owner":"emoon","description":"Realtime CPU Profiler with web browser viewer","archived":false,"fork":false,"pushed_at":"2021-04-28T21:41:42.000Z","size":67,"stargazers_count":33,"open_issues_count":1,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-12T04:40:55.970Z","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/emoon.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}},"created_at":"2016-07-14T14:17:19.000Z","updated_at":"2024-10-12T01:08:32.000Z","dependencies_parsed_at":"2022-09-20T05:20:48.205Z","dependency_job_id":null,"html_url":"https://github.com/emoon/remotery-rs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emoon%2Fremotery-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emoon%2Fremotery-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emoon%2Fremotery-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emoon%2Fremotery-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/emoon","download_url":"https://codeload.github.com/emoon/remotery-rs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248566599,"owners_count":21125694,"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-10-14T08:50:46.527Z","updated_at":"2025-04-12T12:32:20.584Z","avatar_url":"https://github.com/emoon.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# remotery-rs [![Build Status](https://travis-ci.org/emoon/remotery-rs.svg?branch=master)](https://travis-ci.org/emoon/remotery-rs) [![Build status](https://ci.appveyor.com/api/projects/status/ipdufbh57655ln1q?svg=true)](https://ci.appveyor.com/project/emoon/remotery-rs) [![Crates.io](https://img.shields.io/crates/v/remotery.svg)](https://crates.io/crates/remotery) [![Documentation](https://docs.rs/remotery/badge.svg)](https://docs.rs/remotery)\n\nRemotery is a realtime CPU/GPU profiler with a viewer that runs in a web browser. This lib is a [Rust](https://www.rust-lang.org) wrapper around the C API provided by Remotery and the original repo over here https://github.com/Celtoys/Remotery where more information can be found of how to use the UI. Notice that the remotery-rs only support CPU sampling currently.\n\n![screenshot](https://github.com/Celtoys/Remotery/raw/master/screenshot.png?raw=true)\n\nUsage\n-----\n\n```toml\n# Cargo.toml\n[dependencies]\nremotery = \"0.1\"\n```\n\nExample\n-------\n\n```rust\nextern crate remotery;\n\nuse remotery::{Remotery, RemoteryScope, SampleFlags};\nuse std::time::Duration;\nuse std::thread;\n\nfn some_function() {\n    let _scope = RemoteryScope::new(\"some_function\", SampleFlags::Default);\n    thread::sleep(Duration::from_millis(10));\n}\n\nfn main() {\n    let _remotery = Remotery::create_global_instance().unwrap_or_else(|e| {\n    \tpanic!(e);\n\t});\n\n    for _ in 0..1000 {\n        Remotery::log_text(\"Doing profiling!\");\n        Remotery::begin_cpu_sample(\"test\", SampleFlags::Default);\n        thread::sleep(Duration::from_millis(20));\n        some_function();\n        Remotery::end_cpu_sample();\n    }\n}\n```\n## License\n\nLicensed under either of\n\n * Apache License, Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)\n * MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)\n\nat your option.\n\n### Contribution\n\nUnless 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.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femoon%2Fremotery-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Femoon%2Fremotery-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femoon%2Fremotery-rs/lists"}