better already

This commit is contained in:
2025-12-11 06:40:15 +01:00
parent 4930d86e23
commit 06b8cac896
3 changed files with 362 additions and 66 deletions

View File

@@ -5,6 +5,9 @@ use teleprof::instrument;
fn main() {
// Start the telemetry window
teleprof::start();
// Name the main thread
teleprof::set_thread_name("Main");
println!("Teleprof demo running...");
println!("Press Space in the profiler window to pause/unpause");
@@ -44,6 +47,7 @@ fn physics_update() {
// Spawn some worker threads
let handles: Vec<_> = (0..3).map(|i| {
thread::spawn(move || {
teleprof::set_thread_name(format!("Physics-{}", i));
physics_worker(i);
})
}).collect();