Skip to content

Commit d60393a

Browse files
committed
clean up console.log
1 parent d9d273a commit d60393a

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/app/components/PerfView.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,15 +72,11 @@ const PerfView = (props:PerfViewProps) => {
7272
}, [indexToDisplay, svgRef]);
7373

7474
useEffect(() => {
75-
// console.log(`***** useEffect - MAIN -> snapshots[${indexToDisplay}]`, snapshots[indexToDisplay]);
76-
7775
// Error, no App-level component present
7876
if (snapshots[indexToDisplay].children.length < 1) return;
7977

8078
// Generate tree with our data
8179
const packedRoot = packFunc(snapshots[indexToDisplay]);
82-
// console.log('PerfView -> packedRoot', packedRoot);
83-
8480
// Set initial focus to root node
8581
let curFocus = packedRoot;
8682

@@ -112,7 +108,6 @@ const PerfView = (props:PerfViewProps) => {
112108
.style('fill-opacity', (d:{parent:object}) => (d.parent === packedRoot ? 1 : 0))
113109
.style('display', (d:{parent?:object}) => (d.parent === packedRoot ? 'inline' : 'none'))
114110
.text((d:{data:{name:string, componentData?:{actualDuration:any}}}) => {
115-
// console.log("PerfView -> d.data", d.data);
116111
if (!d.data.componentData.actualDuration) handleNoRenderData(true);
117112
else handleNoRenderData(false);
118113
return `${d.data.name}: ${Number.parseFloat(d.data.componentData.actualDuration || 0).toFixed(2)}ms`;

0 commit comments

Comments
 (0)