File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -113,6 +113,8 @@ pub enum AsyncNotification {
113
113
}
114
114
115
115
fn main ( ) -> Result < ( ) > {
116
+ let app_start = Instant :: now ( ) ;
117
+
116
118
let cliargs = process_cmdline ( ) ?;
117
119
118
120
let _profiler = Profiler :: new ( ) ;
@@ -143,6 +145,7 @@ fn main() -> Result<()> {
143
145
144
146
loop {
145
147
let quit_state = run_app (
148
+ app_start,
146
149
repo_path. clone ( ) ,
147
150
theme,
148
151
key_config. clone ( ) ,
@@ -162,6 +165,7 @@ fn main() -> Result<()> {
162
165
}
163
166
164
167
fn run_app (
168
+ app_start : Instant ,
165
169
repo : RepoPath ,
166
170
theme : Theme ,
167
171
key_config : KeyConfig ,
@@ -188,6 +192,8 @@ fn run_app(
188
192
let mut spinner = Spinner :: default ( ) ;
189
193
let mut first_update = true ;
190
194
195
+ log:: trace!( "app start: {} ms" , app_start. elapsed( ) . as_millis( ) ) ;
196
+
191
197
loop {
192
198
let event = if first_update {
193
199
first_update = false ;
You can’t perform that action at this time.
0 commit comments