From 3b8e27ef35066aa2734304237a6d6a99dadc8233 Mon Sep 17 00:00:00 2001 From: vakrilov Date: Fri, 22 May 2015 18:07:47 +0300 Subject: [PATCH] Performance test pages --- CrossPlatformModules.csproj | 10 ++++ apps/tests/pages/performance-test/start.ts | 12 +++++ apps/tests/pages/performance-test/start.xml | 7 +++ apps/tests/pages/performance-test/test-big.ts | 7 +++ .../tests/pages/performance-test/test-big.xml | 54 +++++++++++++++++++ .../pages/performance-test/test-small.ts | 7 +++ .../pages/performance-test/test-small.xml | 12 +++++ 7 files changed, 109 insertions(+) create mode 100644 apps/tests/pages/performance-test/start.ts create mode 100644 apps/tests/pages/performance-test/start.xml create mode 100644 apps/tests/pages/performance-test/test-big.ts create mode 100644 apps/tests/pages/performance-test/test-big.xml create mode 100644 apps/tests/pages/performance-test/test-small.ts create mode 100644 apps/tests/pages/performance-test/test-small.xml diff --git a/CrossPlatformModules.csproj b/CrossPlatformModules.csproj index 8bafda30a..6a70101c7 100644 --- a/CrossPlatformModules.csproj +++ b/CrossPlatformModules.csproj @@ -128,6 +128,9 @@ + + + @@ -609,6 +612,13 @@ + + Designer + + + Designer + + diff --git a/apps/tests/pages/performance-test/start.ts b/apps/tests/pages/performance-test/start.ts new file mode 100644 index 000000000..1dcbec2cb --- /dev/null +++ b/apps/tests/pages/performance-test/start.ts @@ -0,0 +1,12 @@ +import frame = require("ui/frame"); +import observable = require("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, + }); +} \ No newline at end of file diff --git a/apps/tests/pages/performance-test/start.xml b/apps/tests/pages/performance-test/start.xml new file mode 100644 index 000000000..c2facd58a --- /dev/null +++ b/apps/tests/pages/performance-test/start.xml @@ -0,0 +1,7 @@ + + +