1
- import * as JitsiConferenceEvents from '../../JitsiConferenceEvents' ;
2
1
import { JitsiTrackEvents } from '../../JitsiTrackEvents' ;
3
2
import { FEEDBACK } from '../../service/statistics/AnalyticsEvents' ;
4
3
import * as StatisticsEvents from '../../service/statistics/Events' ;
@@ -9,7 +8,6 @@ import WatchRTC from '../watchRTC/WatchRTC';
9
8
10
9
import analytics from './AnalyticsAdapter' ;
11
10
import LocalStats from './LocalStatsCollector' ;
12
- import { PerformanceObserverStats } from './PerformanceObserverStats' ;
13
11
import RTPStats from './RTPStatsCollector' ;
14
12
15
13
const logger = require ( '@jitsi/logger' ) . getLogger ( 'modules/statistics/statistics' ) ;
@@ -34,10 +32,6 @@ Statistics.init = function(options) {
34
32
Statistics . audioLevelsInterval = options . audioLevelsInterval ;
35
33
}
36
34
37
- if ( typeof options . longTasksStatsInterval === 'number' ) {
38
- Statistics . longTasksStatsInterval = options . longTasksStatsInterval ;
39
- }
40
-
41
35
Statistics . disableThirdPartyRequests = options . disableThirdPartyRequests ;
42
36
43
37
LocalStats . init ( ) ;
@@ -229,31 +223,6 @@ Statistics.prototype.addLongTasksStatsListener = function(listener) {
229
223
this . eventEmitter . on ( StatisticsEvents . LONG_TASKS_STATS , listener ) ;
230
224
} ;
231
225
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
-
257
226
/**
258
227
* Obtains the current value of the LongTasks event statistics.
259
228
*
0 commit comments