File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ default-run = "neothesia"
88[features ]
99default = [" oxi-synth" ]
1010
11- profiling-on = [" profiling/profile-with-puffin" ]
11+ profiling-on = [" profiling/profile-with-puffin" , " puffin " , " puffin_http " ]
1212synth = []
1313fluid-synth = [" synth" , " cpal" , " fluidlite" , " oxisynth" ]
1414oxi-synth = [" synth" , " cpal" , " oxisynth" ]
@@ -38,8 +38,8 @@ fluidlite = { workspace = true, optional = true }
3838oxisynth = { workspace = true , optional = true }
3939
4040profiling.workspace = true
41- puffin. workspace = true
42- puffin_http. workspace = true
41+ puffin = { workspace = true , optional = true }
42+ puffin_http = { workspace = true , optional = true }
4343piano-layout.workspace = true
4444
4545[[bin ]]
Original file line number Diff line number Diff line change @@ -373,7 +373,9 @@ fn main() {
373373 )
374374 . init ( ) ;
375375
376+ #[ cfg( feature = "profiling-on" ) ]
376377 puffin:: set_scopes_on ( true ) ; // tell puffin to collect data
378+ #[ cfg( feature = "profiling-on" ) ]
377379 let _server = puffin_http:: Server :: new ( "127.0.0.1:8585" ) . ok ( ) ;
378380
379381 let event_loop: EventLoop < NeothesiaEvent > = EventLoop :: with_user_event ( ) . build ( ) . unwrap ( ) ;
You can’t perform that action at this time.
0 commit comments