Share via


Applications Load - Picture Viewer (Compact 7)

3/12/2014

This test suite analyzes the time the Picture Viewer application spends between invocation of the application and the first screen render. The test does the following:

1. Starts up the application (using any parameters from the param clause)

2. Measures the time between invocation and when the first XAML render completes

3. Runs the application for the specified number of seconds (to make sure the first render has time to complete)

4. Sends the application a close message

5. Collects the performance data

Performance logs can be found at: \\release\XRAppLoadPerfScenario.xml

Test Prerequisites

Your device must meet the following requirements before you run this test.

The following prerequisites must be met to run this test.

The Silverlight for Windows Embedded Performance Test suite can be run on any connected device. Some of the tests may run out of memory on devices with less than 256 MB of memory.

The following table shows the software requirements for the Windows Embedded Compact-based device that will be running the performance test suite. In addition, the run-time image for the devices must include support for Silverlight for Windows Embedded (SYSGEN_XAML_RUNTIME) and CEPerf (IMGCEPERF).

Requirement Description

Tux.exe

Tux test harness, required for executing the test.

Kato.dll

Kato logging engine, required for logging test data

pviewer.exe Sample viewer

Subtests

This test has no subtests.

Setting Up the Test

For each of the tests it is recommended that you first clear the log file (unless you wish to aggregate the results of a number of tests into a single log file). Enter the following at the command line in order to clear the log file:

log 0x0

y

log -flush

Running the Test

Command line:

s tux -o -d XRAppLoadTests.dll -c processname=pviewer;waittime=15;closewindow

Verifying the Test

This test reports a Pass or Fail result.

The logs can be found in the CTK log directory:

Applications Load tests: XRAppLoadPerfScenario.xml

Background Animation: XRBackgroundAnimationPerfResults.xml

Image Manipulation: XRImageManipulationPerfResults.xml

List Performance Tests: XRListPerfResults.xml

Screen Transitions: XRScreenTransitionPerfResults.xml

The following values are common performance measurements:

Avg Frame Rate\ChangeAverage - frame per second during Animation, in fps (frames per second)

Load Image from Resource\Average - average time for loading images from dll resource in microseconds

Load Image from File\Average - average time for loading images from files, in microseconds

Create Host From Xaml\Average - average time for loading and parsing xaml and generating the visual element tree, in microseconds

Paint Element Tree\Average - average time for rendering the visual element tree , in microseconds

First Paint - time from process launch to the end of the first rendering of the visual element tree, in microseconds

Troubleshooting the Test

Known issues: Tests with large resources may fail cause lower-end devices to run out of memory, failing the test.

If running from cmd:

Re-run the test from command line with the following parameter at the end: -f Logfile.txt. The log file, which can be found the release directory after the test executes will have more detailed information on the failure.

If running from a test framework:

Open the test framework’s log file for a more detailed information on the failure.

For additional platform specific issues, consult the CTK articles on the TechNet wiki.

See Also

Other Resources

Shell Tests