@ohos-perf/cli 0.13.3 → 0.15.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 +11 -0
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -275,6 +275,14 @@ async function runUiCompare(deps2, req, opts) {
|
|
|
275
275
|
}
|
|
276
276
|
lines.push(`regions ${result.regions}
|
|
277
277
|
`);
|
|
278
|
+
if (result.image === null) {
|
|
279
|
+
lines.push("animations not measured (no screenshots on either side)\n");
|
|
280
|
+
} else {
|
|
281
|
+
lines.push(
|
|
282
|
+
`animations ${result.animations} labelled, ${result.pixelOnly} pixel-only, ${result.unmeasuredRegions} unmeasured
|
|
283
|
+
`
|
|
284
|
+
);
|
|
285
|
+
}
|
|
278
286
|
for (const line of result.degraded) lines.push(`degraded ${line}
|
|
279
287
|
`);
|
|
280
288
|
lines.push(`wrote ${result.files.join(", ")} in ${result.outDir}
|
|
@@ -1035,6 +1043,9 @@ function realDeps(version = packageVersion(), overrides = {}) {
|
|
|
1035
1043
|
tolerance: diff.image.tolerance
|
|
1036
1044
|
},
|
|
1037
1045
|
regions: diff.regions.length,
|
|
1046
|
+
animations: diff.animations.length,
|
|
1047
|
+
pixelOnly: diff.pixelOnly.length,
|
|
1048
|
+
unmeasuredRegions: diff.unmeasuredRegions.length,
|
|
1038
1049
|
degraded: [...diff.degraded]
|
|
1039
1050
|
};
|
|
1040
1051
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ohos-perf/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.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.15.0",
|
|
40
40
|
"commander": "^12.1.0"
|
|
41
41
|
},
|
|
42
42
|
"scripts": {
|