@@ -18,7 +18,7 @@ import { queueUpdate } from '../core/update';
1818
1919export function createPlatformMain ( namespace : string , Context : d . CoreContext , win : d . WindowData , doc : Document , resourcesUrl : string , hydratedCssClass : string , components : d . ComponentHostData [ ] ) {
2020 const perf = win . performance ;
21- if ( __BUILD_CONDITIONALS__ . perf ) {
21+ if ( __BUILD_CONDITIONALS__ . profile ) {
2222 perf . mark ( `app_load_start` ) ;
2323 }
2424
@@ -110,7 +110,7 @@ export function createPlatformMain(namespace: string, Context: d.CoreContext, wi
110110 plt . isCmpReady . set ( rootElm , App . loaded = plt . isAppLoaded = true ) ;
111111 domApi . $dispatchEvent ( win , 'appload' , { detail : { namespace : namespace } } ) ;
112112
113- if ( __BUILD_CONDITIONALS__ . perf ) {
113+ if ( __BUILD_CONDITIONALS__ . profile ) {
114114 perf . mark ( 'app_load_end' ) ;
115115 perf . measure ( 'app_load' , 'app_load_start' , 'app_load_end' ) ;
116116 }
@@ -151,13 +151,13 @@ export function createPlatformMain(namespace: string, Context: d.CoreContext, wi
151151 . filter ( attribName => ! ! attribName ) ;
152152 }
153153
154- if ( __BUILD_CONDITIONALS__ . perf ) {
154+ if ( __BUILD_CONDITIONALS__ . profile ) {
155155 perf . mark ( `define_start:${ cmpMeta . tagNameMeta } ` ) ;
156156 }
157157
158158 win . customElements . define ( cmpMeta . tagNameMeta , HostElementConstructor ) ;
159159
160- if ( __BUILD_CONDITIONALS__ . perf ) {
160+ if ( __BUILD_CONDITIONALS__ . profile ) {
161161 perf . mark ( `define_end:${ cmpMeta . tagNameMeta } ` ) ;
162162 perf . measure ( `define:${ cmpMeta . tagNameMeta } ` , `define_start:${ cmpMeta . tagNameMeta } ` , `define_end:${ cmpMeta . tagNameMeta } ` ) ;
163163 }
@@ -166,15 +166,15 @@ export function createPlatformMain(namespace: string, Context: d.CoreContext, wi
166166
167167
168168 function requestBundle ( cmpMeta : d . ComponentMeta , elm : d . HostElement , hmrVersionId : string ) {
169- if ( __BUILD_CONDITIONALS__ . perf ) {
169+ if ( __BUILD_CONDITIONALS__ . profile ) {
170170 perf . mark ( `request_bundle_start:${ elm . nodeName . toLowerCase ( ) } :${ elm [ 's-id' ] } ` ) ;
171171 }
172172
173173 if ( cmpMeta . componentConstructor ) {
174174 // we're already all loaded up :)
175175 queueUpdate ( plt , elm , perf ) ;
176176
177- if ( __BUILD_CONDITIONALS__ . perf ) {
177+ if ( __BUILD_CONDITIONALS__ . profile ) {
178178 perf . mark ( `request_bundle_end:${ elm . nodeName . toLowerCase ( ) } :${ elm [ 's-id' ] } ` ) ;
179179 perf . measure ( `request_bundle:${ elm . nodeName . toLowerCase ( ) } :${ elm [ 's-id' ] } ` , `request_bundle_start:${ elm . nodeName . toLowerCase ( ) } :${ elm [ 's-id' ] } ` , `request_bundle_end:${ elm . nodeName . toLowerCase ( ) } :${ elm [ 's-id' ] } ` ) ;
180180 }
@@ -192,7 +192,7 @@ export function createPlatformMain(namespace: string, Context: d.CoreContext, wi
192192 ( cmpMeta . bundleIds as d . GetModuleFn ) ( moduleOpts ) . then ( cmpConstructor => {
193193 // async loading of the module is done
194194
195- if ( __BUILD_CONDITIONALS__ . perf ) {
195+ if ( __BUILD_CONDITIONALS__ . profile ) {
196196 perf . mark ( `request_bundle_end:${ elm . nodeName . toLowerCase ( ) } :${ elm [ 's-id' ] } ` ) ;
197197 perf . measure ( `request_bundle:${ elm . nodeName . toLowerCase ( ) } :${ elm [ 's-id' ] } ` , `request_bundle_start:${ elm . nodeName . toLowerCase ( ) } :${ elm [ 's-id' ] } ` , `request_bundle_end:${ elm . nodeName . toLowerCase ( ) } :${ elm [ 's-id' ] } ` ) ;
198198 }
@@ -246,7 +246,7 @@ export function createPlatformMain(namespace: string, Context: d.CoreContext, wi
246246 __import ( url ) . then ( importedModule => {
247247 // async loading of the module is done
248248
249- if ( __BUILD_CONDITIONALS__ . perf ) {
249+ if ( __BUILD_CONDITIONALS__ . profile ) {
250250 perf . mark ( `request_bundle_end:${ elm . nodeName . toLowerCase ( ) } :${ elm [ 's-id' ] } ` ) ;
251251 perf . measure ( `request_bundle:${ elm . nodeName . toLowerCase ( ) } :${ elm [ 's-id' ] } ` , `request_bundle_start:${ elm . nodeName . toLowerCase ( ) } :${ elm [ 's-id' ] } ` , `request_bundle_end:${ elm . nodeName . toLowerCase ( ) } :${ elm [ 's-id' ] } ` ) ;
252252 }
@@ -287,15 +287,15 @@ export function createPlatformMain(namespace: string, Context: d.CoreContext, wi
287287 if ( __BUILD_CONDITIONALS__ . browserModuleLoader ) {
288288 // register all the components now that everything's ready
289289 // standard es2017 class extends HTMLElement
290- if ( __BUILD_CONDITIONALS__ . perf ) {
290+ if ( __BUILD_CONDITIONALS__ . profile ) {
291291 perf . mark ( `define_custom_elements_start` ) ;
292292 }
293293
294294 components
295295 . map ( parseComponentLoader )
296296 . forEach ( cmpMeta => defineComponent ( cmpMeta , class extends HTMLElement { } ) ) ;
297297
298- if ( __BUILD_CONDITIONALS__ . perf ) {
298+ if ( __BUILD_CONDITIONALS__ . profile ) {
299299 perf . mark ( `define_custom_elements_end` ) ;
300300 perf . measure ( `define_custom_elements` , `define_custom_elements_start` , `define_custom_elements_end` ) ;
301301 }
0 commit comments