@@ -15,7 +15,7 @@ use ratatui::{
1515 symbols,
1616 symbols:: border,
1717 text:: { Line , Text } ,
18- widgets:: { block :: Title , Block , Paragraph , Widget } ,
18+ widgets:: { Block , Paragraph , Widget } ,
1919 DefaultTerminal , Frame ,
2020} ;
2121use std:: collections:: HashMap ;
@@ -107,9 +107,9 @@ pub async fn run_console(
107107 timestamp: event. timestamp,
108108 } ) ) ;
109109 }
110- BenchmarkEvent :: BenchmarkReportEnd => {
110+ BenchmarkEvent :: BenchmarkReportEnd ( path ) => {
111111 dispatcher. lock( ) . expect( "lock" ) . dispatch( Action :: LogMessage ( LogMessageUI {
112- message: "Benchmark report saved." . to_string ( ) ,
112+ message: format! ( "Benchmark report saved to {}" , path ) ,
113113 level: LogLevel :: Info ,
114114 timestamp: chrono:: Utc :: now( ) ,
115115 } ) ) ;
@@ -286,9 +286,9 @@ impl Widget for &App {
286286 . constraints ( [ Constraint :: Percentage ( 35 ) , Constraint :: Percentage ( 65 ) ] )
287287 . split ( bottom_layout[ 0 ] ) ;
288288 // LOGS
289- let logs_title = Title :: from ( "Logs" . bold ( ) ) ;
289+ let logs_title = Line :: from ( "Logs" . bold ( ) ) . centered ( ) ;
290290 let logs_block = Block :: bordered ( )
291- . title ( logs_title. alignment ( Alignment :: Center ) )
291+ . title_top ( logs_title)
292292 . border_set ( border:: THICK ) ;
293293 List :: new (
294294 state
@@ -339,7 +339,7 @@ impl Widget for &App {
339339 Paragraph :: new ( config_text. clone ( ) ) . render ( main_layout[ 0 ] , buf) ;
340340
341341 // STEPS
342- let steps_block_title = Title :: from ( "Benchmark steps" . bold ( ) ) ;
342+ let steps_block_title = Line :: from ( "Benchmark steps" . bold ( ) ) . centered ( ) ;
343343 let steps_block = Block :: bordered ( )
344344 . title ( steps_block_title. alignment ( Alignment :: Center ) )
345345 . border_set ( border:: THICK ) ;
@@ -389,7 +389,7 @@ impl Widget for &App {
389389 . render ( steps_graph_layout[ 0 ] , buf) ;
390390
391391 // CHARTS
392- let graphs_block_title = Title :: from ( "Token throughput rate" . bold ( ) ) ;
392+ let graphs_block_title = Line :: from ( "Token throughput rate" . bold ( ) ) . centered ( ) ;
393393 let graphs_block = Block :: bordered ( )
394394 . title ( graphs_block_title. alignment ( Alignment :: Center ) )
395395 . border_set ( border:: THICK ) ;
0 commit comments