[compiler] Add simple walltime measurement
Adds a new Timing logger event to the compiler which currently only records the walltime of running the compiler from the time the babel plugin's Program visitor enters to the time it exits. To enable, run the compiler with `ENABLE_REACT_COMPILER_TIMINGS=1 ...` or `export ENABLE_REACT_COMPILER_TIMINGS=1` to set it by default.
Showing
- compiler/packages/babel-plugin-react-compiler/src/Babel/BabelPlugin.ts 63 additions, 30 deletions...ages/babel-plugin-react-compiler/src/Babel/BabelPlugin.ts
- compiler/packages/babel-plugin-react-compiler/src/Entrypoint/Options.ts 4 additions, 0 deletions...ges/babel-plugin-react-compiler/src/Entrypoint/Options.ts
Please register or sign in to comment