react-performance icon indicating copy to clipboard operation
react-performance copied to clipboard

introducing isMuted

Open kelset opened this issue 8 years ago • 0 comments

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)

kelset avatar Jan 15 '18 11:01 kelset