File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change
1
+ import * as profiling from "./profiling" ;
2
+ profiling . start ( 'application-start' ) ;
1
3
import application = require( "application" ) ;
2
4
3
5
//TODO: hide this in a separate module e.g. "angular-application"
Original file line number Diff line number Diff line change
1
+ import * as profiling from "./profiling" ;
1
2
import { topmost } from 'ui/frame' ;
2
3
import { TextView } from 'ui/text-view' ;
3
4
@@ -8,11 +9,15 @@ import {Benchmark} from './benchmark';
8
9
9
10
//TODO: move to an angular init module/base page class
10
11
export function pageLoaded ( args ) {
12
+ profiling . stop ( 'application-start' ) ;
13
+
11
14
var page = args . object ;
12
15
page . bindingContext = "" ;
13
16
17
+ profiling . start ( 'ng-bootstrap' ) ;
14
18
console . log ( 'BOOTSTRAPPING...' ) ;
15
19
nativeScriptBootstrap ( Benchmark , [ ] ) . then ( ( appRef ) => {
20
+ profiling . stop ( 'ng-bootstrap' ) ;
16
21
console . log ( 'ANGULAR BOOTSTRAP DONE.' ) ;
17
22
} , ( err ) => {
18
23
console . log ( 'ERROR BOOTSTRAPPING ANGULAR' ) ;
You can’t perform that action at this time.
0 commit comments