Attach ReactPerf to window for easier debugging (#3318)
This commit is contained in:
parent
3a82ee323e
commit
14e97fbedc
1 changed files with 3 additions and 1 deletions
|
@ -13,7 +13,9 @@ if (process.env.NODE_ENV === 'development') {
|
|||
performance.setResourceTimingBufferSize(Infinity);
|
||||
}
|
||||
marky = require('marky');
|
||||
require('react-addons-perf').start();
|
||||
// allows us to easily do e.g. ReactPerf.printWasted() while debugging
|
||||
window.ReactPerf = require('react-addons-perf');
|
||||
window.ReactPerf.start();
|
||||
}
|
||||
|
||||
export function start(name) {
|
||||
|
|
Loading…
Reference in a new issue