File tree Expand file tree Collapse file tree 3 files changed +5
-1
lines changed Expand file tree Collapse file tree 3 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,8 @@ trace = [
16
16
" bevy_ecs/trace" ,
17
17
" bevy_log/trace" ,
18
18
" bevy_render?/trace" ,
19
- " bevy_hierarchy/trace"
19
+ " bevy_hierarchy/trace" ,
20
+ " bevy_winit/trace"
20
21
]
21
22
trace_chrome = [ " bevy_log/tracing-chrome" ]
22
23
trace_tracy = [" bevy_render?/tracing-tracy" , " bevy_log/tracing-tracy" ]
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ license = "MIT OR Apache-2.0"
9
9
keywords = [" bevy" ]
10
10
11
11
[features ]
12
+ trace = []
12
13
wayland = [" winit/wayland" ]
13
14
x11 = [" winit/x11" ]
14
15
Original file line number Diff line number Diff line change @@ -360,6 +360,8 @@ pub fn winit_runner_with(mut app: App) {
360
360
let event_handler = move |event : Event < ( ) > ,
361
361
event_loop : & EventLoopWindowTarget < ( ) > ,
362
362
control_flow : & mut ControlFlow | {
363
+ #[ cfg( feature = "trace" ) ]
364
+ let _span = bevy_utils:: tracing:: info_span!( "winit event_handler" ) . entered ( ) ;
363
365
match event {
364
366
event:: Event :: NewEvents ( start) => {
365
367
let winit_config = app. world . resource :: < WinitSettings > ( ) ;
You can’t perform that action at this time.
0 commit comments