mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
13 lines
371 B
TypeScript
13 lines
371 B
TypeScript
import { Frame } from '@nativescript/core/ui/frame';
|
|
import * as observable from '@nativescript/core/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,
|
|
});
|
|
}
|