File tree 1 file changed +5
-2
lines changed
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -184,6 +184,7 @@ impl GlobalState {
184
184
// NOTE: don't count blocking select! call as a loop-turn time
185
185
let _p = profile:: span ( "GlobalState::handle_event" ) ;
186
186
187
+ let event_dbg = format ! ( "{event:?}" ) ;
187
188
tracing:: debug!( "{:?} handle_event({:?})" , loop_start, event) ;
188
189
let task_queue_len = self . task_pool . handle . len ( ) ;
189
190
if task_queue_len > 0 {
@@ -394,8 +395,10 @@ impl GlobalState {
394
395
395
396
let loop_duration = loop_start. elapsed ( ) ;
396
397
if loop_duration > Duration :: from_millis ( 100 ) && was_quiescent {
397
- tracing:: warn!( "overly long loop turn: {:?}" , loop_duration) ;
398
- self . poke_rust_analyzer_developer ( format ! ( "overly long loop turn: {loop_duration:?}" ) ) ;
398
+ tracing:: warn!( "overly long loop turn took {loop_duration:?}: {event_dbg}" ) ;
399
+ self . poke_rust_analyzer_developer ( format ! (
400
+ "overly long loop turn took {loop_duration:?}: {event_dbg}"
401
+ ) ) ;
399
402
}
400
403
Ok ( ( ) )
401
404
}
You can’t perform that action at this time.
0 commit comments