mirror of
https://codeberg.org/unspeaker/tengri.git
synced 2026-09-18 05:16:44 +02:00
update deps; add profiling
This commit is contained in:
parent
95ace83756
commit
20517f09b4
5 changed files with 1232 additions and 618 deletions
|
|
@ -1205,7 +1205,8 @@ pub trait AsMutOpt<T> { fn as_mut_opt (&mut self) -> Option<&mut T>; }
|
|||
Ok(Self {
|
||||
exit: exit.clone(),
|
||||
perf: perf.clone(),
|
||||
join: Builder::new().name("tengri tui output".into()).spawn(move || {
|
||||
join: Builder::new().name("tengri task".into()).spawn(move || {
|
||||
#[cfg(feature = "prof")] profiling::register_thread!();
|
||||
while !exit.fetch_and(true, Relaxed) {
|
||||
let _ = perf.cycle(&mut call);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue