File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
packages/cubejs-schema-compiler/src/compiler Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ class PerfTracker {
5555
5656 public printReport ( ) {
5757 console . log ( '\n🚀 PERFORMANCE REPORT 🚀\n' ) ;
58- console . log ( '═' . repeat ( 80 ) ) ;
58+ console . log ( '═' . repeat ( 90 ) ) ;
5959
6060 const sorted = Object . entries ( this . metrics )
6161 . sort ( ( [ , a ] , [ , b ] ) => b . totalTime - a . totalTime ) ;
@@ -77,10 +77,10 @@ class PerfTracker {
7777
7878 sorted . forEach ( ( [ name , m ] ) => {
7979 const pct = totalTime > 0 ? ( m . totalTime / totalTime * 100 ) : 0 ;
80- console . log ( ` ${ name . padEnd ( 30 ) } │ ${ m . totalTime . toFixed ( 2 ) . padStart ( 8 ) } ms │ ${ m . avgTime . toFixed ( 2 ) . padStart ( 7 ) } ms avg │ ${ pct . toFixed ( 1 ) . padStart ( 5 ) } % │ ${ m . count . toString ( ) . padStart ( 4 ) } calls` ) ;
80+ console . log ( ` ${ name . padEnd ( 40 ) } │ ${ m . totalTime . toFixed ( 2 ) . padStart ( 8 ) } ms │ ${ m . avgTime . toFixed ( 2 ) . padStart ( 7 ) } ms avg │ ${ pct . toFixed ( 1 ) . padStart ( 5 ) } % │ ${ m . count . toString ( ) . padStart ( 4 ) } calls` ) ;
8181 } ) ;
8282
83- console . log ( '═' . repeat ( 80 ) ) ;
83+ console . log ( '═' . repeat ( 90 ) ) ;
8484 console . log ( '🎯 End of Performance Report\n' ) ;
8585 }
8686}
You can’t perform that action at this time.
0 commit comments