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
|
|
@ -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!(
|
||||
|
|
|
|||
|
|
@ -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