@@ -47,8 +47,6 @@ import {NgZone} from '../zone/ng_zone';
4747import { ApplicationInitStatus } from './application_init' ;
4848import { TracingAction , TracingService , TracingSnapshot } from './tracing' ;
4949import { EffectScheduler } from '../render3/reactivity/root_effect_scheduler' ;
50- import { ProfilerEvent } from '../render3/profiler_types' ;
51- import { profiler } from '../render3/profiler' ;
5250
5351/**
5452 * A DI token that provides a set of callbacks to
@@ -533,8 +531,6 @@ export class ApplicationRef {
533531 componentOrFactory : ComponentFactory < C > | Type < C > ,
534532 rootSelectorOrNode ?: string | any ,
535533 ) : ComponentRef < C > {
536- profiler ( ProfilerEvent . BootstrapComponentStart ) ;
537-
538534 ( typeof ngDevMode === 'undefined' || ngDevMode ) && warnIfDestroyed ( this . _destroyed ) ;
539535 const isComponentFactory = componentOrFactory instanceof ComponentFactory ;
540536 const initStatus = this . _injector . get ( ApplicationInitStatus ) ;
@@ -580,9 +576,6 @@ export class ApplicationRef {
580576 const _console = this . _injector . get ( Console ) ;
581577 _console . log ( `Angular is running in development mode.` ) ;
582578 }
583-
584- profiler ( ProfilerEvent . BootstrapComponentEnd , compRef ) ;
585-
586579 return compRef ;
587580 }
588581
@@ -605,8 +598,6 @@ export class ApplicationRef {
605598
606599 /** @internal */
607600 _tick = ( ) : void => {
608- profiler ( ProfilerEvent . ChangeDetectionStart ) ;
609-
610601 if ( this . tracingSnapshot !== null ) {
611602 const snapshot = this . tracingSnapshot ;
612603 this . tracingSnapshot = null ;
@@ -631,6 +622,7 @@ export class ApplicationRef {
631622 try {
632623 this . _runningTick = true ;
633624 this . synchronize ( ) ;
625+
634626 if ( typeof ngDevMode === 'undefined' || ngDevMode ) {
635627 for ( let view of this . allViews ) {
636628 view . checkNoChanges ( ) ;
@@ -643,8 +635,6 @@ export class ApplicationRef {
643635 this . _runningTick = false ;
644636 setActiveConsumer ( prevConsumer ) ;
645637 this . afterTick . next ( ) ;
646-
647- profiler ( ProfilerEvent . ChangeDetectionEnd ) ;
648638 }
649639 } ;
650640
@@ -663,9 +653,7 @@ export class ApplicationRef {
663653
664654 let runs = 0 ;
665655 while ( this . dirtyFlags !== ApplicationRefDirtyFlags . None && runs ++ < MAXIMUM_REFRESH_RERUNS ) {
666- profiler ( ProfilerEvent . ChangeDetectionSyncStart ) ;
667656 this . synchronizeOnce ( ) ;
668- profiler ( ProfilerEvent . ChangeDetectionSyncEnd ) ;
669657 }
670658
671659 if ( ( typeof ngDevMode === 'undefined' || ngDevMode ) && runs >= MAXIMUM_REFRESH_RERUNS ) {
0 commit comments