@@ -47,8 +47,6 @@ import {NgZone} from '../zone/ng_zone';
47
47
import { ApplicationInitStatus } from './application_init' ;
48
48
import { TracingAction , TracingService , TracingSnapshot } from './tracing' ;
49
49
import { EffectScheduler } from '../render3/reactivity/root_effect_scheduler' ;
50
- import { ProfilerEvent } from '../render3/profiler_types' ;
51
- import { profiler } from '../render3/profiler' ;
52
50
53
51
/**
54
52
* A DI token that provides a set of callbacks to
@@ -533,8 +531,6 @@ export class ApplicationRef {
533
531
componentOrFactory : ComponentFactory < C > | Type < C > ,
534
532
rootSelectorOrNode ?: string | any ,
535
533
) : ComponentRef < C > {
536
- profiler ( ProfilerEvent . BootstrapComponentStart ) ;
537
-
538
534
( typeof ngDevMode === 'undefined' || ngDevMode ) && warnIfDestroyed ( this . _destroyed ) ;
539
535
const isComponentFactory = componentOrFactory instanceof ComponentFactory ;
540
536
const initStatus = this . _injector . get ( ApplicationInitStatus ) ;
@@ -580,9 +576,6 @@ export class ApplicationRef {
580
576
const _console = this . _injector . get ( Console ) ;
581
577
_console . log ( `Angular is running in development mode.` ) ;
582
578
}
583
-
584
- profiler ( ProfilerEvent . BootstrapComponentEnd , compRef ) ;
585
-
586
579
return compRef ;
587
580
}
588
581
@@ -605,8 +598,6 @@ export class ApplicationRef {
605
598
606
599
/** @internal */
607
600
_tick = ( ) : void => {
608
- profiler ( ProfilerEvent . ChangeDetectionStart ) ;
609
-
610
601
if ( this . tracingSnapshot !== null ) {
611
602
const snapshot = this . tracingSnapshot ;
612
603
this . tracingSnapshot = null ;
@@ -631,6 +622,7 @@ export class ApplicationRef {
631
622
try {
632
623
this . _runningTick = true ;
633
624
this . synchronize ( ) ;
625
+
634
626
if ( typeof ngDevMode === 'undefined' || ngDevMode ) {
635
627
for ( let view of this . allViews ) {
636
628
view . checkNoChanges ( ) ;
@@ -643,8 +635,6 @@ export class ApplicationRef {
643
635
this . _runningTick = false ;
644
636
setActiveConsumer ( prevConsumer ) ;
645
637
this . afterTick . next ( ) ;
646
-
647
- profiler ( ProfilerEvent . ChangeDetectionEnd ) ;
648
638
}
649
639
} ;
650
640
@@ -663,9 +653,7 @@ export class ApplicationRef {
663
653
664
654
let runs = 0 ;
665
655
while ( this . dirtyFlags !== ApplicationRefDirtyFlags . None && runs ++ < MAXIMUM_REFRESH_RERUNS ) {
666
- profiler ( ProfilerEvent . ChangeDetectionSyncStart ) ;
667
656
this . synchronizeOnce ( ) ;
668
- profiler ( ProfilerEvent . ChangeDetectionSyncEnd ) ;
669
657
}
670
658
671
659
if ( ( typeof ngDevMode === 'undefined' || ngDevMode ) && runs >= MAXIMUM_REFRESH_RERUNS ) {
0 commit comments