Macro os::show_frame_consumption
source · [−]macro_rules! show_frame_consumption {
($place:literal; $($statement:stmt); *;) => { ... };
($place:literal, $before:ident) => { ... };
}Expand description
Usage Example
show_frame_consumption!{$place, $before} Format:
show_frame_consumption!("push_elf_area", previous_use)show_frame_consumption!{$place, $statement} Format:
show_frame_consumption! {
"push_elf_area";
if crate::mm::push_elf_area(file.clone()).is_err() {
file.kread(None, buffer);
} else {
info!("[elf_exec] Hit ELF cache, no alloc");
};
}Arguments
$place: the name tag for the promotion.statement: the enclosedbefore: