react-performance
react-performance copied to clipboard
introducing isMuted
Adding a isMuted option to the measuring parameters: its purpose is, basically, to not print any logs for that component is the option is set to true.
The overall idea of this option is to use it in combo with the startRecording/printRecording methods without seeing every single component render log while using it.
Slightly OT, is this a good way to approach the start/print?
constructor() {
setTimeout(() => {
ReactPerformance.startRecording()
setTimeout(() => {
ReactPerformance.printRecording()
}, 20000)
}, 100)
}
(I mean, using setTimeout in the constructor for a component)