File tree Expand file tree Collapse file tree 1 file changed +0
-5
lines changed Expand file tree Collapse file tree 1 file changed +0
-5
lines changed Original file line number Diff line number Diff line change @@ -72,15 +72,11 @@ const PerfView = (props:PerfViewProps) => {
72
72
} , [ indexToDisplay , svgRef ] ) ;
73
73
74
74
useEffect ( ( ) => {
75
- // console.log(`***** useEffect - MAIN -> snapshots[${indexToDisplay}]`, snapshots[indexToDisplay]);
76
-
77
75
// Error, no App-level component present
78
76
if ( snapshots [ indexToDisplay ] . children . length < 1 ) return ;
79
77
80
78
// Generate tree with our data
81
79
const packedRoot = packFunc ( snapshots [ indexToDisplay ] ) ;
82
- // console.log('PerfView -> packedRoot', packedRoot);
83
-
84
80
// Set initial focus to root node
85
81
let curFocus = packedRoot ;
86
82
@@ -112,7 +108,6 @@ const PerfView = (props:PerfViewProps) => {
112
108
. style ( 'fill-opacity' , ( d :{ parent :object } ) => ( d . parent === packedRoot ? 1 : 0 ) )
113
109
. style ( 'display' , ( d :{ parent ?:object } ) => ( d . parent === packedRoot ? 'inline' : 'none' ) )
114
110
. text ( ( d :{ data :{ name :string , componentData ?:{ actualDuration :any } } } ) => {
115
- // console.log("PerfView -> d.data", d.data);
116
111
if ( ! d . data . componentData . actualDuration ) handleNoRenderData ( true ) ;
117
112
else handleNoRenderData ( false ) ;
118
113
return `${ d . data . name } : ${ Number . parseFloat ( d . data . componentData . actualDuration || 0 ) . toFixed ( 2 ) } ms` ;
You can’t perform that action at this time.
0 commit comments