1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 async function test(context, commands) {
9 // Nothing to do -- the timing is captured via logcat
15 owner: "Performance Team",
18 "Measures the time from process start until the Fenix main activity (HomeActivity) reports Fully Drawn",
20 This test launches Fenix to its main activity (HomeActivity).
21 The application logs "Fully Drawn" when the activity is drawn.
22 Using the android log transformer we measure the time from process start to this event.
25 ./mach perftest testing/performance/perftest_android_main.js --android --flavor mobile-browser \
26 --hooks testing/performance/hooks_home_activity.py --perfherder --android-app-name org.mozilla.fenix \
27 --android-activity .App --android-install-apk ~/Downloads/fenix.apk --android-clear-logcat \
28 --android-capture-logcat logcat \
29 --androidlog-first-timestamp ".*Start proc.*org\.mozilla\.fenix.*\.App.*" \
30 --androidlog-second-timestamp ".*Fully drawn.*org\.mozilla\.fenix.*" \
31 --androidlog-subtest-name "MAIN" --androidlog
33 supportedBrowsers: ["Fenix nightly"],
34 supportedPlatforms: ["Android"],