Fix Firefox issue with performance marks (#3315)

lolsob-rspec
Nolan Lawson 2017-05-25 09:59:18 -07:00 committed by Eugen Rochko
parent af368a2d12
commit 8fe2781534
1 changed files with 5 additions and 0 deletions

View File

@ -7,6 +7,11 @@
let marky; let marky;
if (process.env.NODE_ENV === 'development') { if (process.env.NODE_ENV === 'development') {
if (typeof performance !== 'undefined' && performance.setResourceTimingBufferSize) {
// Increase Firefox's performance entry limit; otherwise it's capped to 150.
// See: https://bugzilla.mozilla.org/show_bug.cgi?id=1331135
performance.setResourceTimingBufferSize(Infinity);
}
marky = require('marky'); marky = require('marky');
require('react-addons-perf').start(); require('react-addons-perf').start();
} }