mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 11:42:04 +08:00
13 lines
386 B
TypeScript
13 lines
386 B
TypeScript
import * as frame from "tns-core-modules/ui/frame";
|
|
import * as observable from "tns-core-modules/data/observable";
|
|
|
|
declare function __startCPUProfiler(name: string);
|
|
|
|
export function navigate(args: observable.EventData) {
|
|
var tag = "" + args.object.get("tag");
|
|
__startCPUProfiler("xml-performance-" + tag);
|
|
frame.topmost().navigate({
|
|
moduleName: tag,
|
|
});
|
|
}
|