mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-26 11:59:49 +00:00
Profiling tweaks
This commit is contained in:
parent
539659cde3
commit
e7ba7f47a7
3 changed files with 9 additions and 0 deletions
|
@ -87,6 +87,8 @@ where
|
|||
Ok(())
|
||||
}
|
||||
}
|
||||
|
||||
#[must_use]
|
||||
pub fn timeit(label: &'static str) -> impl Drop {
|
||||
struct Guard {
|
||||
label: &'static str,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue