99
1010function _factory ( sharedObj ) {
1111
12- sharedObj . _performanceEntries = sharedObj . _performanceEntries || [ ] ;
12+ sharedObj . MonacoPerformanceMarks = sharedObj . MonacoPerformanceMarks || [ ] ;
1313
1414 const _dataLen = 2 ;
1515 const _timeStamp = typeof console . timeStamp === 'function' ? console . timeStamp . bind ( console ) : ( ) => { } ;
1616
1717 function importEntries ( entries ) {
18- sharedObj . _performanceEntries . splice ( 0 , 0 , ...entries ) ;
18+ sharedObj . MonacoPerformanceMarks . splice ( 0 , 0 , ...entries ) ;
1919 }
2020
2121 function exportEntries ( ) {
22- return sharedObj . _performanceEntries . slice ( 0 ) ;
22+ return sharedObj . MonacoPerformanceMarks . slice ( 0 ) ;
2323 }
2424
2525 function getEntries ( ) {
2626 const result = [ ] ;
27- const entries = sharedObj . _performanceEntries ;
27+ const entries = sharedObj . MonacoPerformanceMarks ;
2828 for ( let i = 0 ; i < entries . length ; i += _dataLen ) {
2929 result . push ( {
3030 name : entries [ i ] ,
@@ -35,7 +35,7 @@ function _factory(sharedObj) {
3535 }
3636
3737 function getDuration ( from , to ) {
38- const entries = sharedObj . _performanceEntries ;
38+ const entries = sharedObj . MonacoPerformanceMarks ;
3939 let target = to ;
4040 let endIndex = 0 ;
4141 for ( let i = entries . length - _dataLen ; i >= 0 ; i -= _dataLen ) {
@@ -54,7 +54,7 @@ function _factory(sharedObj) {
5454 }
5555
5656 function mark ( name ) {
57- sharedObj . _performanceEntries . push ( name , Date . now ( ) ) ;
57+ sharedObj . MonacoPerformanceMarks . push ( name , Date . now ( ) ) ;
5858 _timeStamp ( name ) ;
5959 }
6060
0 commit comments