@ohos-perf/cli 0.1.0 → 0.2.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.
Files changed (2) hide show
  1. package/dist/index.js +6 -0
  2. package/package.json +49 -39
package/dist/index.js CHANGED
@@ -286,6 +286,12 @@ var TABLE_RULES = [
286
286
  { id: "trace.sched", collector: "hitrace", tables: ["sched_slice", "instant"] },
287
287
  { id: "trace.binder", collector: "hitrace", tables: ["callstack", "args", "data_dict", "process", "thread", "trace_range"] },
288
288
  { id: "trace.thread_state", collector: "hitrace", tables: ["thread_state", "thread", "process"] },
289
+ // GC and component-build events are callstack rows scoped through thread and
290
+ // process; without either join the analyzers would crash rather than degrade.
291
+ { id: "trace.ark", collector: "hitrace", tables: ["callstack", "thread", "process"] },
292
+ // VSync groups are `frame_slice` rows attributed through `process`; a trace
293
+ // with one and not the other cannot scope the cadence to the app.
294
+ { id: "render.vsync", collector: "hitrace", tables: ["frame_slice", "process"] },
289
295
  // Scene artifacts, not tables: `procfs.jsonl`, `hidumper.json` and `ui.json`
290
296
  // are satisfied by the parsed artifact the caller passes in.
291
297
  { id: "mem.procfs", collector: "procfs", tables: ["procfs.jsonl"] },
package/package.json CHANGED
@@ -1,39 +1,49 @@
1
- {
2
- "name": "@ohos-perf/cli",
3
- "version": "0.1.0",
4
- "description": "Command-line interface for HarmonyOS performance analysis: doctor, caps, collect, analyze, query, tools and compare",
5
- "keywords": [
6
- "harmonyos",
7
- "openharmony",
8
- "ohos",
9
- "performance",
10
- "profiling",
11
- "cli",
12
- "hapray"
13
- ],
14
- "type": "module",
15
- "bin": { "ohos-perf": "./dist/index.js" },
16
- "files": ["dist"],
17
- "engines": { "node": "^22.13.0 || >=23.4.0" },
18
- "license": "MIT",
19
- "author": "growvv",
20
- "homepage": "https://growvv.github.io/ohos-perf/",
21
- "repository": {
22
- "type": "git",
23
- "url": "git+https://github.com/growvv/ohos-perf.git",
24
- "directory": "packages/cli"
25
- },
26
- "bugs": { "url": "https://github.com/growvv/ohos-perf/issues" },
27
- "publishConfig": { "access": "public" },
28
- "dependencies": {
29
- "@ohos-perf/core": "0.1.0",
30
- "commander": "^12.1.0"
31
- },
32
- "scripts": {
33
- "build": "tsup src/index.ts --format esm --target node22",
34
- "typecheck": "tsc --noEmit -p tsconfig.test.json",
35
- "pretest": "npm run build -w @ohos-perf/core",
36
- "test": "vitest run",
37
- "prepublishOnly": "npm run build"
38
- }
39
- }
1
+ {
2
+ "name": "@ohos-perf/cli",
3
+ "version": "0.2.0",
4
+ "description": "Command-line interface for HarmonyOS performance analysis: doctor, caps, collect, analyze, query, tools and compare",
5
+ "keywords": [
6
+ "harmonyos",
7
+ "openharmony",
8
+ "ohos",
9
+ "performance",
10
+ "profiling",
11
+ "cli",
12
+ "hapray"
13
+ ],
14
+ "type": "module",
15
+ "bin": {
16
+ "ohos-perf": "./dist/index.js"
17
+ },
18
+ "files": [
19
+ "dist"
20
+ ],
21
+ "engines": {
22
+ "node": "^22.13.0 || >=23.4.0"
23
+ },
24
+ "license": "MIT",
25
+ "author": "growvv",
26
+ "homepage": "https://growvv.github.io/ohos-perf/",
27
+ "repository": {
28
+ "type": "git",
29
+ "url": "git+https://github.com/growvv/ohos-perf.git",
30
+ "directory": "packages/cli"
31
+ },
32
+ "bugs": {
33
+ "url": "https://github.com/growvv/ohos-perf/issues"
34
+ },
35
+ "publishConfig": {
36
+ "access": "public"
37
+ },
38
+ "dependencies": {
39
+ "@ohos-perf/core": "0.2.0",
40
+ "commander": "^12.1.0"
41
+ },
42
+ "scripts": {
43
+ "build": "tsup src/index.ts --format esm --target node22",
44
+ "typecheck": "tsc --noEmit -p tsconfig.test.json",
45
+ "pretest": "npm run build -w @ohos-perf/core",
46
+ "test": "vitest run",
47
+ "prepublishOnly": "npm run build"
48
+ }
49
+ }