@@ -233,14 +233,14 @@ fn write_profile(settings: &Settings) -> Result<(), Box<dyn std::error::Error>>
233233 enum ProfileFormat {
234234 Html ,
235235 Text ,
236- Speedscope ,
236+ SpeedScore ,
237237 }
238238 let profile_output = settings. profile_output . as_deref ( ) ;
239239 let profile_format = match settings. profile_format . as_deref ( ) {
240240 Some ( "html" ) => ProfileFormat :: Html ,
241241 Some ( "text" ) => ProfileFormat :: Text ,
242242 None if profile_output == Some ( "-" . as_ref ( ) ) => ProfileFormat :: Text ,
243- Some ( "speedscope" ) | None => ProfileFormat :: Speedscope ,
243+ Some ( "speedscope" ) | None => ProfileFormat :: SpeedScore ,
244244 Some ( other) => {
245245 error ! ( "Unknown profile format {}" , other) ;
246246 // TODO: Need to change to ExitCode or Termination
@@ -251,7 +251,7 @@ fn write_profile(settings: &Settings) -> Result<(), Box<dyn std::error::Error>>
251251 let profile_output = profile_output. unwrap_or_else ( || match profile_format {
252252 ProfileFormat :: Html => "flame-graph.html" . as_ref ( ) ,
253253 ProfileFormat :: Text => "flame.txt" . as_ref ( ) ,
254- ProfileFormat :: Speedscope => "flamescope.json" . as_ref ( ) ,
254+ ProfileFormat :: SpeedScore => "flamescope.json" . as_ref ( ) ,
255255 } ) ;
256256
257257 let profile_output: Box < dyn io:: Write > = if profile_output == "-" {
@@ -265,7 +265,7 @@ fn write_profile(settings: &Settings) -> Result<(), Box<dyn std::error::Error>>
265265 match profile_format {
266266 ProfileFormat :: Html => flame:: dump_html ( profile_output) ?,
267267 ProfileFormat :: Text => flame:: dump_text_to_writer ( profile_output) ?,
268- ProfileFormat :: Speedscope => flamescope:: dump ( profile_output) ?,
268+ ProfileFormat :: SpeedScore => flamescope:: dump ( profile_output) ?,
269269 }
270270
271271 Ok ( ( ) )
0 commit comments