Remove marky, mark-loader
This commit is contained in:
@@ -25,7 +25,6 @@ import '../styles/application.scss';
|
||||
import './precheck';
|
||||
import { default as Soapbox } from './containers/soapbox';
|
||||
import * as monitoring from './monitoring';
|
||||
import * as perf from './performance';
|
||||
import ready from './ready';
|
||||
import toast from './toast';
|
||||
|
||||
@@ -34,8 +33,6 @@ const messages = defineMessages({
|
||||
updateText: { id: 'sw.update_text', defaultMessage: 'An update is available.' },
|
||||
});
|
||||
|
||||
perf.start('main()');
|
||||
|
||||
// Sentry
|
||||
monitoring.start();
|
||||
|
||||
@@ -69,5 +66,4 @@ ready(() => {
|
||||
},
|
||||
});
|
||||
}
|
||||
perf.stop('main()');
|
||||
});
|
||||
@@ -1,31 +0,0 @@
|
||||
'use strict';
|
||||
|
||||
import * as BuildConfig from 'soapbox/build-config';
|
||||
|
||||
//
|
||||
// Tools for performance debugging, only enabled in development mode.
|
||||
// Open up Chrome Dev Tools, then Timeline, then User Timing to see output.
|
||||
// Also see config/webpack/loaders/mark.js for the webpack loader marks.
|
||||
//
|
||||
|
||||
let marky: any;
|
||||
|
||||
if (BuildConfig.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');
|
||||
// allows us to easily do e.g. ReactPerf.printWasted() while debugging
|
||||
//window.ReactPerf = require('react-addons-perf');
|
||||
//window.ReactPerf.start();
|
||||
}
|
||||
|
||||
export function start(name: string): void {
|
||||
marky?.mark(name);
|
||||
}
|
||||
|
||||
export function stop(name: string): void {
|
||||
marky?.stop(name);
|
||||
}
|
||||
Reference in New Issue
Block a user