better already
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user