You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+34-33Lines changed: 34 additions & 33 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -168,19 +168,19 @@ scan({
168
168
* Long task threshold in milliseconds, only show
169
169
* when main thread is blocked for longer than this
170
170
*/
171
-
longTaskThreshold:50;
171
+
longTaskThreshold:50,
172
172
173
173
/**
174
-
* Clear aggregated fibers after this time in milliseconds
174
+
* Report data to getReport()
175
175
*/
176
-
resetCountTimeout:5000;
177
-
178
-
onCommitStart?: () =>void;
179
-
onRender?: (fiber, render) =>void;
180
-
onCommitFinish?: () =>void;
181
-
onPaintStart?: (outline) =>void;
182
-
onPaintFinish?: (outline) =>void;
183
-
})
176
+
report:false,
177
+
178
+
onCommitStart: () =>{},
179
+
onRender: (fiber, render) =>{},
180
+
onCommitFinish: () =>{},
181
+
onPaintStart: (outline) =>{},
182
+
onPaintFinish: (outline) =>{},
183
+
});
184
184
```
185
185
186
186
</details>
@@ -231,19 +231,19 @@ withScan(Component, {
231
231
* Long task threshold in milliseconds, only show
232
232
* when main thread is blocked for longer than this
233
233
*/
234
-
longTaskThreshold:50;
234
+
longTaskThreshold:50,
235
235
236
236
/**
237
-
* Clear aggregated fibers after this time in milliseconds
237
+
* Report data to getReport()
238
238
*/
239
-
resetCountTimeout:5000;
240
-
241
-
onCommitStart?: () =>void;
242
-
onRender?: (fiber, render) =>void;
243
-
onCommitFinish?: () =>void;
244
-
onPaintStart?: (outline) =>void;
245
-
onPaintFinish?: (outline) =>void;
246
-
})
239
+
report:false,
240
+
241
+
onCommitStart: () =>{},
242
+
onRender: (fiber, render) =>{},
243
+
onCommitFinish: () =>{},
244
+
onPaintStart: (outline) =>{},
245
+
onPaintFinish: (outline) =>{},
246
+
});
247
247
```
248
248
249
249
</details>
@@ -256,6 +256,8 @@ withScan(Component, {
256
256
Get a aggregated report of all components and renders.
257
257
258
258
```jsx
259
+
scan({ report:true });
260
+
259
261
constreport=getReport();
260
262
261
263
for (constcomponentin report) {
@@ -309,19 +311,19 @@ setOptions({
309
311
* Long task threshold in milliseconds, only show
310
312
* when main thread is blocked for longer than this
311
313
*/
312
-
longTaskThreshold:50;
314
+
longTaskThreshold:50,
313
315
314
316
/**
315
-
* Clear aggregated fibers after this time in milliseconds
317
+
* Report data to getReport()
316
318
*/
317
-
resetCountTimeout:5000;
318
-
319
-
onCommitStart?: () =>void;
320
-
onRender?: (fiber, render) =>void;
321
-
onCommitFinish?: () =>void;
322
-
onPaintStart?: (outline) =>void;
323
-
onPaintFinish?: (outline) =>void;
324
-
})
319
+
report:false,
320
+
321
+
onCommitStart: () =>{},
322
+
onRender: (fiber, render) =>{},
323
+
onCommitFinish: () =>{},
324
+
onPaintStart: (outline) =>{},
325
+
onPaintFinish: (outline) =>{},
326
+
});
325
327
```
326
328
327
329
</details>
@@ -417,7 +419,7 @@ We expect all contributors to abide by the terms of our [Code of Conduct](https:
417
419
-[x] Give a general report of the app's performance
418
420
-[ ] checkbox filtering API, leaderboard
419
421
-[ ] Offscreen canvas on worker thread
420
-
-[] heatmap decay (stacked renders will be more intense)
422
+
-[x] heatmap decay (stacked renders will be more intense)
421
423
-[ ] Investigate components (UI allowlist)
422
424
-[ ] UI for turning on/off options
423
425
-[ ] “PageSpeed insights” for React
@@ -426,8 +428,7 @@ We expect all contributors to abide by the terms of our [Code of Conduct](https:
426
428
-[ ] Simple FPS counter
427
429
-[ ] Drag and select areas of the screen to scan
428
430
-[ ] Long task progress bar filter
429
-
-[ ] Report should include all renders
430
-
-[ ] ChatGPT / Claude video
431
+
-[x] Report should include all renders
431
432
-[ ][Runtime version guarding](https://github.com/lahmatiy/react-render-tracker/blob/229ad0e9c28853615300724d5dc86c140f250f60/src/publisher/react-integration/utils/getInternalReactConstants.ts#L28)
432
433
-[ ] React as peer dependency (lock version to range)
433
434
-[ ] Add a funny mascot, like the ["Stop I'm Changing" dude](https://www.youtube.com/shorts/FwOZdX7bDKI?app=desktop)
0 commit comments