update deps; add profiling

This commit is contained in:
facile pop culture reference 2026-08-14 13:36:37 +03:00
parent 95ace83756
commit 20517f09b4
5 changed files with 1232 additions and 618 deletions

View file

@ -211,9 +211,11 @@ impl Sizer {
}
fn_kw_layout!($kw_name |state, output, expr| {
#[cfg(feature = "prof")] profiling::scope!(stringify!(match $kw_name));
let head = expr.head()?;
let mut frags = head.src()?.unwrap_or_default().split("/");
Ok(matches!(frags.next(), Some($name)).then(||{
#[cfg(feature = "prof")] profiling::scope!(stringify!(inner $kw_name));
let args = expr.tail();
let arg0 = args.head();
let tail0 = args.tail();
@ -253,9 +255,11 @@ impl Sizer {
}
fn_kw_layout!($kw_name |state, output, expr| {
#[cfg(feature = "prof")] profiling::scope!(stringify!(match $kw_name));
let head = expr.head()?;
let mut frags = head.src()?.unwrap_or_default().split("/");
Ok(matches!(frags.next(), Some($name)).then(||{
#[cfg(feature = "prof")] profiling::scope!(stringify!(inner $kw_name));
let args = expr.tail();
let arg0 = args.head();
eval_xy!(

View file

@ -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);
}