{"id":29803431,"url":"https://github.com/usbalbin/probe-plotter","last_synced_at":"2026-02-08T00:03:20.691Z","repository":{"id":306156580,"uuid":"1024591005","full_name":"usbalbin/probe-plotter","owner":"usbalbin","description":"Plot variables in embedded targets as graphs with very low overhead using debug probe","archived":false,"fork":false,"pushed_at":"2025-12-31T01:39:24.000Z","size":1617,"stargazers_count":3,"open_issues_count":15,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-02T11:56:32.550Z","etag":null,"topics":["debugging","embedded-rust"],"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/usbalbin.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-07-23T00:33:11.000Z","updated_at":"2025-12-31T03:15:23.000Z","dependencies_parsed_at":"2025-08-10T13:11:13.316Z","dependency_job_id":"22e05bf7-f162-43c6-befa-6dd06ae50acf","html_url":"https://github.com/usbalbin/probe-plotter","commit_stats":null,"previous_names":["usbalbin/probe-plotter"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/usbalbin/probe-plotter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/usbalbin%2Fprobe-plotter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/usbalbin%2Fprobe-plotter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/usbalbin%2Fprobe-plotter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/usbalbin%2Fprobe-plotter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/usbalbin","download_url":"https://codeload.github.com/usbalbin/probe-plotter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/usbalbin%2Fprobe-plotter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29213487,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-07T23:58:20.073Z","status":"ssl_error","status_checked_at":"2026-02-07T23:58:07.729Z","response_time":63,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["debugging","embedded-rust"],"created_at":"2025-07-28T11:08:15.109Z","updated_at":"2026-02-08T00:03:20.664Z","avatar_url":"https://github.com/usbalbin.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# probe-plotter\n\nA set of tools to plot values from the target to graph in rerun with minimal performance impact. This project is based on code from `defmt` and `cortex_m`'s `singleton` macro. It also uses rerun for visualization.\n\n* probe-plotter - The target side library\n* probe-plotter-tools - The host side application\n\n```rust\n#![no_std]\n#![no_main]\n\nuse cortex_m_rt::entry;\nuse panic_halt as _;\n\n#[entry]\nfn main() -\u003e ! {\n    use probe_plotter::make_metric;\n    let mut sawtooth = make_metric!(SAWTOOTH: i32 = 42, \"(x / 10) % 100\").unwrap();\n    let mut sine = make_metric!(SINE: i32 = 42, \"100 * sin(2 * pi * x / 4000)\").unwrap();\n    loop {\n        for i in 0..i32::MAX {\n            sawtooth.set(i);\n            sine.set(i);\n            cortex_m::asm::delay(100_000);\n        }\n    }\n}\n```\n\nThe formulas seen in the `make_metric` macro invocation are computed by the host and will thus have zero impact on the targets performance. The `set` method on the metrics object is simply a volatile store which is quite cheap. The host will then read that value using the debug probe at regular intervals and update the graph on any changes.\n\n##### Prerequisits\nprobe-plotter uses the Rerun viewer for visualizing the graphs. Please [make sure to have that installed](https://rerun.io/docs/getting-started/installing-viewer#installing-the-viewer). Also make sure to have libudev installed.\n\n##### To run the tool\n\n```\ncd probe-plotter-host\ncargo run /path/to/elf chip_name\n```\n\nSo for example plotting the example in examples/simple on a Nucleo-G474RE\n\n```\ncd examples/simple\ncargo run # Let it flash and then cancel (Ctrl+C) to let the target continue running in the background while giving up access to the probe\n\ncd ../probe-plotter-tools\ncargo run ../examples/simple/target/thumbv7em-none-eabihf/debug/simple stm32g474retx\n# Rerun will open with a graph showing all created metrics objects\n```\n\n\u003cimg width=\"2880\" height=\"1920\" alt=\"Screenshot\" src=\"https://github.com/user-attachments/assets/5f7f20c9-009d-42c7-9613-789ae26afe54\" /\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fusbalbin%2Fprobe-plotter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fusbalbin%2Fprobe-plotter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fusbalbin%2Fprobe-plotter/lists"}