pub fn measure_if(name: impl Into<SharedString>, if_: bool, f: impl FnOnce())Expand description
Measures the execution time of a function and logs it if if_ is true.
And need env GPUI_MEASUREMENTS=1
pub fn measure_if(name: impl Into<SharedString>, if_: bool, f: impl FnOnce())Measures the execution time of a function and logs it if if_ is true.
And need env GPUI_MEASUREMENTS=1