@@ -12,7 +12,7 @@ import { schemeSet3 } from 'd3-scale-chromatic';
12
12
import snapshots from './snapshots' ;
13
13
import { onHover , onHoverExit } from '../actions/actions' ;
14
14
import { useStoreContext } from '../store'
15
-
15
+ import RenderingFrequency from './RenderingFrequency'
16
16
/* NOTES
17
17
Issue - Not fully compatible with recoil apps. Reference the recoil-todo-test.
18
18
Barstacks display inconsistently...however, almost always displays upon initial test app load or
@@ -179,9 +179,33 @@ const PerformanceVisx = (props: BarStackProps) => {
179
179
snapshotIdScale . rangeRound ( [ 0 , xMax ] ) ;
180
180
renderingScale . range ( [ yMax , 0 ] ) ;
181
181
182
+
183
+ // let cards = []
184
+ // const updateData = object => {
185
+ // // for (let key in data.componentData) {
186
+ // for (let key in object) {
187
+ // let componentKey = object[key]
188
+ // // let componentKey = data.componentData[key]
189
+ // let averageRendering= (componentKey['totalRenderTime']/ componentKey['renderFrequency']).toPrecision(3)
190
+ // cards.push(<RenderingFrequency
191
+ // key={componentKey['rtid']}
192
+ // name={key}
193
+ // renderTimes={componentKey['renderFrequency']}
194
+ // state={componentKey['stateType']}
195
+ // average={averageRendering}
196
+ // />)
197
+ // }
198
+ // return cards
199
+ // }
200
+ // updateData(data.componentData)
201
+
202
+
203
+
204
+
182
205
// if performance tab is too small it will not return VISX component
183
206
return width < 10 ? null : (
184
207
< div style = { { position : 'relative' } } >
208
+ < RenderingFrequency data = { data . componentData } />
185
209
< svg ref = { containerRef } width = { width } height = { height } >
186
210
< rect
187
211
x = { 0 }
0 commit comments