measure_if

Function measure_if 

Source
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