Mercurial > hg
diff rust/rhg/src/commands/debugdata.rs @ 45530:b1cea0dc9db0
rhg: Add debug timing
Differential Revision: https://phab.mercurial-scm.org/D8962
author | Antoine Cezar <antoine.cezar@octobus.net> |
---|---|
date | Wed, 23 Sep 2020 12:26:16 +0200 |
parents | 66756b34c06e |
children | 8d6164098782 |
line wrap: on
line diff
--- a/rust/rhg/src/commands/debugdata.rs Mon Aug 17 16:56:39 2020 +0200 +++ b/rust/rhg/src/commands/debugdata.rs Wed Sep 23 12:26:16 2020 +0200 @@ -5,6 +5,7 @@ use hg::operations::{ DebugData, DebugDataError, DebugDataErrorKind, DebugDataKind, }; +use micro_timer::timed; pub const HELP_TEXT: &str = " Dump the contents of a data file revision @@ -22,6 +23,7 @@ } impl<'a> Command for DebugDataCommand<'a> { + #[timed] fn run(&self, ui: &Ui) -> Result<(), CommandError> { let mut operation = DebugData::new(self.rev, self.kind); let data =