@@ -25,10 +25,9 @@ var TABLE = (function() {
25
25
var table = selection . append ( "table" ) . attr ( "class" , "table table-bordered" ) ;
26
26
var thead = table . append ( "thead" ) ;
27
27
thead . append ( "th" ) . text ( "Name" ) ;
28
- thead . append ( "th" ) . html ( "Start<br>(ms)" ) ;
29
- thead . append ( "th" ) . html ( "Run<br>(ms)" ) ;
30
- thead . append ( "th" ) . html ( "Total<br>(ms)" ) ;
31
- thead . append ( "th" ) . html ( "End<br>(ms)" ) ;
28
+ thead . append ( "th" ) . html ( "Start (ms)" ) ;
29
+ thead . append ( "th" ) . html ( "Run (ms)" ) ;
30
+ thead . append ( "th" ) . html ( "Total (ms)" ) ;
32
31
thead . append ( "th" ) . text ( "Result" ) ;
33
32
thead . append ( "th" ) . text ( "Value" ) ;
34
33
return table ;
@@ -66,19 +65,24 @@ var TABLE = (function() {
66
65
67
66
rowsEnter . append ( "td" )
68
67
. classed ( "numeric" , true )
69
- . text ( function ( d ) { return TRACE . alignMillis ( d . startMillis ) ; } ) ;
68
+ . html ( function ( d ) { return "<br/>" + TRACE . alignMillis ( d . startMillis ) ; } ) ;
70
69
71
70
rowsEnter . append ( "td" )
72
71
. classed ( "numeric" , true )
73
- . text ( function ( d ) { return 'runMillis' in d ? TRACE . alignMillis ( d . runMillis ) : '?' ; } ) ;
72
+ . html ( function ( d ) {
73
+ if ( 'runMillis' in d ) {
74
+ return "+" + TRACE . alignMillis ( d . runMillis ) + "<br/>" +
75
+ TRACE . alignMillis ( d . startMillis + d . runMillis ) ;
76
+ }
77
+ return '?' ;
78
+ } ) ;
74
79
75
80
rowsEnter . append ( "td" )
76
81
. classed ( "numeric" , true )
77
- . text ( function ( d ) { return TRACE . alignMillis ( d . totalMillis ) ; } ) ;
78
-
79
- rowsEnter . append ( "td" )
80
- . classed ( "numeric" , true )
81
- . text ( function ( d ) { return TRACE . alignMillis ( d . startMillis + d . totalMillis ) ; } ) ;
82
+ . html ( function ( d ) {
83
+ return "+" + TRACE . alignMillis ( d . totalMillis ) + "<br/>" +
84
+ TRACE . alignMillis ( d . startMillis + d . totalMillis ) ;
85
+ } ) ;
82
86
83
87
rowsEnter . append ( "td" )
84
88
. attr ( "class" , function ( d ) { return d . resultType ; } )
0 commit comments