@ohos-perf/cli 0.18.0 → 0.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +6 -3
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -883,6 +883,7 @@ function analyzeContext(opened) {
|
|
|
883
883
|
...opened.hidumper === void 0 ? {} : { hidumper: opened.hidumper },
|
|
884
884
|
...opened.hilog === void 0 ? {} : { hilog: [...opened.hilog] },
|
|
885
885
|
...opened.redundantFile === void 0 ? {} : { redundantFile: opened.redundantFile },
|
|
886
|
+
...opened.coverage === void 0 ? {} : { coverage: opened.coverage },
|
|
886
887
|
...opened.metadata !== void 0 ? { metadata: opened.metadata } : {},
|
|
887
888
|
app: opened.app,
|
|
888
889
|
// The whole database: a CLI run has no capture window to honour.
|
|
@@ -1003,6 +1004,7 @@ function realDeps(version = packageVersion(), overrides = {}) {
|
|
|
1003
1004
|
}
|
|
1004
1005
|
const hilogText = declared("hilog") ? readHilogText(layout) : void 0;
|
|
1005
1006
|
const redundantFile = existsSync2(layout.redundantFile) ? readFileSync2(layout.redundantFile, "utf8") : void 0;
|
|
1007
|
+
const coverage = existsSync2(layout.coverageFile) ? readFileSync2(layout.coverageFile, "utf8") : void 0;
|
|
1006
1008
|
const hilog = hilogText === void 0 ? void 0 : parseHilogText(hilogText, {
|
|
1007
1009
|
...metadata?.capture === void 0 ? {} : { year: new Date(metadata.capture.startedAtMs).getUTCFullYear() },
|
|
1008
1010
|
captureNs: (metadata?.capture?.startedAtMs ?? 0) * 1e6
|
|
@@ -1043,7 +1045,8 @@ function realDeps(version = packageVersion(), overrides = {}) {
|
|
|
1043
1045
|
...screenshotError === void 0 ? {} : { screenshotError },
|
|
1044
1046
|
...hidumper === void 0 ? {} : { hidumper },
|
|
1045
1047
|
...hilog === void 0 ? {} : { hilog },
|
|
1046
|
-
...redundantFile === void 0 ? {} : { redundantFile }
|
|
1048
|
+
...redundantFile === void 0 ? {} : { redundantFile },
|
|
1049
|
+
...coverage === void 0 ? {} : { coverage }
|
|
1047
1050
|
};
|
|
1048
1051
|
} catch (err) {
|
|
1049
1052
|
scene.close();
|
|
@@ -1787,9 +1790,9 @@ function buildProgram(deps2, io, opts = {}) {
|
|
|
1787
1790
|
...opts2.keepGoing === true ? { keepGoing: true } : {}
|
|
1788
1791
|
}, { json: opts2.json }));
|
|
1789
1792
|
});
|
|
1790
|
-
program2.command("explore").description("walk an app's UI, tapping unvisited elements, and report the screens reached").argument("<app>", "bundle name to explore, e.g. com.example.app").option("--max-steps <n>", "stop after this many taps
|
|
1793
|
+
program2.command("explore").description("walk an app's UI, tapping unvisited elements, and report the screens reached").argument("<app>", "bundle name to explore, e.g. com.example.app").option("--max-steps <n>", "stop after this many taps", "30").option(
|
|
1791
1794
|
"--strategy <name>",
|
|
1792
|
-
"depth_first, breadth_first or random
|
|
1795
|
+
"depth_first, breadth_first or random",
|
|
1793
1796
|
"depth_first"
|
|
1794
1797
|
).option("--seed <n>", "make --strategy random reproducible").option("--target <id>", "walk this hdc target instead of the first connected one").option("--json", "print the walk result as JSON").action(async (app, opts2) => {
|
|
1795
1798
|
let maxSteps;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ohos-perf/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.19.0",
|
|
4
4
|
"description": "Command-line interface for HarmonyOS performance analysis: doctor, caps, collect, analyze, query, tools, compare, report, gesture, emulator and selector-driven scenarios",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"harmonyos",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"access": "public"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@ohos-perf/core": "0.
|
|
39
|
+
"@ohos-perf/core": "0.19.0",
|
|
40
40
|
"commander": "^12.1.0"
|
|
41
41
|
},
|
|
42
42
|
"scripts": {
|