Mercurial > hg
changeset 49376:6b04f702c501 stable
rust: remove excessive calls to `#[timed]`
This makes trace output *really* noisy and is only useful in case you want to
take a look at a single revlog.
This is easy to add back on a case-by-case basis and does not need to stay with
the more permanent timers.
author | Raphaël Gomès <rgomes@octobus.net> |
---|---|
date | Wed, 25 May 2022 18:29:21 +0200 |
parents | 044e42ae45d9 |
children | 7fe86498e84f |
files | rust/hg-core/src/revlog/revlog.rs |
diffstat | 1 files changed, 0 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/rust/hg-core/src/revlog/revlog.rs Wed May 25 16:50:00 2022 +0200 +++ b/rust/hg-core/src/revlog/revlog.rs Wed May 25 18:29:21 2022 +0200 @@ -5,7 +5,6 @@ use std::path::Path; use flate2::read::ZlibDecoder; -use micro_timer::timed; use sha1::{Digest, Sha1}; use zstd; @@ -83,7 +82,6 @@ /// /// It will also open the associated data file if index and data are not /// interleaved. - #[timed] pub fn open( store_vfs: &Vfs, index_path: impl AsRef<Path>, @@ -157,7 +155,6 @@ /// Return the revision number for the given node ID, if it exists in this /// revlog - #[timed] pub fn rev_from_node( &self, node: NodePrefix, @@ -207,7 +204,6 @@ /// All entries required to build the final data out of deltas will be /// retrieved as needed, and the deltas will be applied to the inital /// snapshot to rebuild the final data. - #[timed] pub fn get_rev_data( &self, rev: Revision, @@ -242,7 +238,6 @@ /// Build the full data of a revision out its snapshot /// and its deltas. - #[timed] fn build_data_from_deltas( snapshot: RevlogEntry, deltas: &[RevlogEntry],