Skip to content

Commit 8ff323b

Browse files
authored
feat(PerformanceObserverStats) remove it (#2809)
It hasn't been useful or used in years.
1 parent 868ed78 commit 8ff323b

File tree

5 files changed

+0
-206
lines changed

5 files changed

+0
-206
lines changed

JitsiConference.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -484,11 +484,6 @@ JitsiConference.prototype._init = function(options = {}) {
484484
Statistics.analytics.addPermanentProperties({
485485
'callstats_name': this._statsCurrentId
486486
});
487-
488-
// Start performance observer for monitoring long tasks
489-
if (config.longTasksStatsInterval) {
490-
this.statistics.attachLongTasksStats();
491-
}
492487
}
493488

494489
this.eventManager.setupChatRoomListeners();

modules/statistics/PerformanceObserverStats.js

Lines changed: 0 additions & 97 deletions
This file was deleted.

modules/statistics/PerformanceObserverStats.spec.js

Lines changed: 0 additions & 67 deletions
This file was deleted.

modules/statistics/statistics.js

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import * as JitsiConferenceEvents from '../../JitsiConferenceEvents';
21
import { JitsiTrackEvents } from '../../JitsiTrackEvents';
32
import { FEEDBACK } from '../../service/statistics/AnalyticsEvents';
43
import * as StatisticsEvents from '../../service/statistics/Events';
@@ -9,7 +8,6 @@ import WatchRTC from '../watchRTC/WatchRTC';
98

109
import analytics from './AnalyticsAdapter';
1110
import LocalStats from './LocalStatsCollector';
12-
import { PerformanceObserverStats } from './PerformanceObserverStats';
1311
import RTPStats from './RTPStatsCollector';
1412

1513
const logger = require('@jitsi/logger').getLogger('modules/statistics/statistics');
@@ -34,10 +32,6 @@ Statistics.init = function(options) {
3432
Statistics.audioLevelsInterval = options.audioLevelsInterval;
3533
}
3634

37-
if (typeof options.longTasksStatsInterval === 'number') {
38-
Statistics.longTasksStatsInterval = options.longTasksStatsInterval;
39-
}
40-
4135
Statistics.disableThirdPartyRequests = options.disableThirdPartyRequests;
4236

4337
LocalStats.init();
@@ -229,31 +223,6 @@ Statistics.prototype.addLongTasksStatsListener = function(listener) {
229223
this.eventEmitter.on(StatisticsEvents.LONG_TASKS_STATS, listener);
230224
};
231225

232-
/**
233-
* Creates an instance of {@link PerformanceObserverStats} and starts the
234-
* observer that records the stats periodically.
235-
*
236-
* @returns {void}
237-
*/
238-
Statistics.prototype.attachLongTasksStats = function() {
239-
if (!browser.supportsPerformanceObserver()) {
240-
logger.warn('Performance observer for long tasks not supported by browser!');
241-
242-
return;
243-
}
244-
245-
this.performanceObserverStats = new PerformanceObserverStats(
246-
this.eventEmitter,
247-
Statistics.longTasksStatsInterval);
248-
249-
this.conference.on(
250-
JitsiConferenceEvents.CONFERENCE_JOINED,
251-
() => this.performanceObserverStats.startObserver());
252-
this.conference.on(
253-
JitsiConferenceEvents.CONFERENCE_LEFT,
254-
() => this.performanceObserverStats.stopObserver());
255-
};
256-
257226
/**
258227
* Obtains the current value of the LongTasks event statistics.
259228
*

types/hand-crafted/modules/statistics/PerformanceObserverStats.d.ts

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)