mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-17 04:41:36 +08:00
12 lines
351 B
TypeScript
12 lines
351 B
TypeScript
import * as frame from "ui/frame";
|
|
import * as observable from "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,
|
|
});
|
|
} |