# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. from pathlib import Path
from mozperftest.layers import Layer
class AndroidLog(Layer): """Runs an android log test."""
name = "androidlog"
activated = False
arguments = { "first-timestamp": { "type": str, "default": None, "help": "First timestamp regexp",
}, "second-timestamp": { "type": str, "default": None, "help": "Second timestamp regexp",
}, "subtest-name": { "type": str, "default": "TimeToDisplayed", "help": "Name of the metric that is produced",
},
}
def _get_logcat(self):
logcat = self.get_arg("android-capture-logcat") if logcat isNone: raise NotImplementedError() # check if the path is absolute or relative to output
path = Path(logcat) ifnot path.is_absolute(): return Path(self.get_arg("output"), path).resolve() return path.resolve()
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.