Profile iOS keypoints in the UINavigationViewController (#5108)

This commit is contained in:
Panayot Cankov
2017-12-04 17:43:48 +02:00
committed by GitHub
parent 13e8bfb9d3
commit ec2ce7fe45
3 changed files with 12 additions and 0 deletions

View File

@@ -17,6 +17,7 @@ export * from "./application-common";
import { Frame, View, NavigationEntry } from "../ui/frame";
import { ios } from "../ui/utils";
import * as utils from "../utils/utils";
import { profile } from "../profiling";
class Responder extends UIResponder {
//
@@ -35,6 +36,7 @@ class Window extends UIWindow {
return window;
}
@profile
public layoutSubviews(): void {
if (utils.ios.MajorVersion < 9) {
ios._layoutRootView(this.content, utils.ios.getter(UIScreen, UIScreen.mainScreen).bounds);
@@ -112,6 +114,7 @@ class IOSApplication implements IOSApplicationDefinition {
}
}
@profile
private didFinishLaunchingWithOptions(notification: NSNotification) {
this._window = <Window>Window.alloc().initWithFrame(utils.ios.getter(UIScreen, UIScreen.mainScreen).bounds);
this._window.backgroundColor = utils.ios.getter(UIColor, UIColor.whiteColor);
@@ -146,6 +149,7 @@ class IOSApplication implements IOSApplicationDefinition {
this._window.makeKeyAndVisible();
}
@profile
private didBecomeActive(notification: NSNotification) {
let ios = utils.ios.getter(UIApplication, UIApplication.sharedApplication);
let object = this;