mirror of
https://github.com/gitui-org/gitui
synced 2026-05-24 09:28:21 +00:00
trace app start duration
This commit is contained in:
parent
faf912393b
commit
3667db37e1
1 changed files with 6 additions and 0 deletions
|
|
@ -113,6 +113,8 @@ pub enum AsyncNotification {
|
|||
}
|
||||
|
||||
fn main() -> Result<()> {
|
||||
let app_start = Instant::now();
|
||||
|
||||
let cliargs = process_cmdline()?;
|
||||
|
||||
let _profiler = Profiler::new();
|
||||
|
|
@ -143,6 +145,7 @@ fn main() -> Result<()> {
|
|||
|
||||
loop {
|
||||
let quit_state = run_app(
|
||||
app_start,
|
||||
repo_path.clone(),
|
||||
theme,
|
||||
key_config.clone(),
|
||||
|
|
@ -162,6 +165,7 @@ fn main() -> Result<()> {
|
|||
}
|
||||
|
||||
fn run_app(
|
||||
app_start: Instant,
|
||||
repo: RepoPath,
|
||||
theme: Theme,
|
||||
key_config: KeyConfig,
|
||||
|
|
@ -188,6 +192,8 @@ fn run_app(
|
|||
let mut spinner = Spinner::default();
|
||||
let mut first_update = true;
|
||||
|
||||
log::trace!("app start: {} ms", app_start.elapsed().as_millis());
|
||||
|
||||
loop {
|
||||
let event = if first_update {
|
||||
first_update = false;
|
||||
|
|
|
|||
Loading…
Reference in a new issue