@ohos-perf/core 0.18.1 → 0.20.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 (3) hide show
  1. package/dist/index.d.ts +326 -2
  2. package/dist/index.js +735 -66
  3. package/package.json +48 -48
package/dist/index.d.ts CHANGED
@@ -399,6 +399,12 @@ interface SceneLayout {
399
399
  * carries one. Nothing here produces it yet; it is read when present.
400
400
  */
401
401
  redundantFile: string;
402
+ /**
403
+ * `coverageReport.json`: coverage written by an instrumented build and the
404
+ * external `bjc` toolchain. Nothing here produces it; it is read when present
405
+ * and its absence is a named `no_data` rather than a zero.
406
+ */
407
+ coverageFile: string;
402
408
  /**
403
409
  * `jsheap.heapsnapshot`: the raw heap snapshot a `--mem-jsheap` capture
404
410
  * pulled. Opaque to this package; it exists for DevEco Studio to open.
@@ -3607,7 +3613,7 @@ declare class ThreadStateQuery {
3607
3613
  forItids(itids: number[], range?: TimeRange): ThreadState[];
3608
3614
  }
3609
3615
 
3610
- type EvidenceKind = 'no_data' | 'jank' | 'frame_load' | 'empty_frame' | 'vsync_anomaly' | 'fps_baseline' | 'degraded_capability' | 'fault_pattern' | 'binder_hotspot' | 'thread_redundancy' | 'memory_growth' | 'native_memory' | 'hilog_match' | 'gc_pressure' | 'rs_skip' | 'startup' | 'ui_tree' | 'tech_stack' | 'duplicate_asset' | 'oversized_asset' | 'symbol_stats' | 'unresolved_symbol' | 'redundant_file';
3616
+ type EvidenceKind = 'no_data' | 'jank' | 'frame_load' | 'empty_frame' | 'vsync_anomaly' | 'fps_baseline' | 'degraded_capability' | 'fault_pattern' | 'binder_hotspot' | 'thread_redundancy' | 'memory_growth' | 'native_memory' | 'hilog_match' | 'gc_pressure' | 'rs_skip' | 'startup' | 'ui_tree' | 'tech_stack' | 'duplicate_asset' | 'oversized_asset' | 'symbol_stats' | 'unresolved_symbol' | 'redundant_file' | 'coverage' | 'optimization';
3611
3617
  /**
3612
3618
  * A follow-up query an agent can issue to drill into an evidence item.
3613
3619
  *
@@ -3790,6 +3796,15 @@ interface AnalyzeContext {
3790
3796
  * `no_data` with a reason when it is absent rather than three zeros.
3791
3797
  */
3792
3798
  redundantFile?: string;
3799
+ /**
3800
+ * The raw `coverageReport.json` a scene carried, when it did.
3801
+ *
3802
+ * Written by an external instrumented build and the `bjc` toolchain, never by
3803
+ * this package. The analyzer reports `no_data` with a reason when it is
3804
+ * absent rather than a zero — HapRay silently skips the section, which makes
3805
+ * "not measured" and "0% covered" the same absence.
3806
+ */
3807
+ coverage?: string;
3793
3808
  /**
3794
3809
  * The scene's flattened UI tree, when it carried a `ui.json`. The `ui`
3795
3810
  * analyzer decides from what it is given rather than declaring `ui.tree` as a
@@ -4406,6 +4421,92 @@ interface BundleRerenderInput {
4406
4421
  */
4407
4422
  declare function renderBundle(input: BundleRerenderInput): Array<[string, string | Uint8Array]>;
4408
4423
 
4424
+ /**
4425
+ * Coverage ingestion (HapRay parity row 24).
4426
+ *
4427
+ * HapRay does not measure coverage. It shells out to `bjc`, which needs an
4428
+ * instrumented build (`ohos-test-coverage=true`, `coverage-mode=black`), a
4429
+ * debug HAP, an on-device cache, `aa dump` and a matching project source path
4430
+ * — and when any of that is missing its analyzer returns `None`, so the
4431
+ * section disappears from the report. A reader cannot then tell "coverage was
4432
+ * never measured" from "0% of lines ran", which are opposite conclusions.
4433
+ *
4434
+ * This package does not ship `bjc` and will not pretend to: an instrumented
4435
+ * build is a property of how the app was compiled, not something an analysis
4436
+ * tool can supply after the fact. What it does instead is read the report
4437
+ * `bjc` writes — the very document HapRay's own HTML template renders — and
4438
+ * report it as *supplied* data, with the producing tool named in provenance.
4439
+ * A scene without one degrades with a reason, so the absence is visible.
4440
+ *
4441
+ * ## The document
4442
+ *
4443
+ * The shape is fixed by bjc's report template:
4444
+ *
4445
+ * {
4446
+ * "date": "2026-11-17T10:00:00.000Z",
4447
+ * "summary": { "lines": { "total": 400, "covered": 300, "pct": 75 },
4448
+ * "functions": { "total": 40, "covered": 30, "pct": 75 },
4449
+ * "branches": { "total": 80, "covered": 40, "pct": 50 } },
4450
+ * "files": [ { "path": "entry/src/main/ets/pages/Index.ets",
4451
+ * "summary": { … same three … } } ]
4452
+ * }
4453
+ *
4454
+ * The `pct` fields are recomputed rather than trusted: keeping the producer's
4455
+ * rounding would make this report a function of a tool this package does not
4456
+ * control, and a `total` of zero has to be 0% rather than `NaN`.
4457
+ */
4458
+
4459
+ /** One of the three things bjc counts: `covered / total`. */
4460
+ interface CoverageCounts {
4461
+ readonly covered: number;
4462
+ readonly total: number;
4463
+ }
4464
+ /** The same counts, plus the percentage this module computes from them. */
4465
+ interface CoverageRatio extends CoverageCounts {
4466
+ /** `covered / total * 100`, rounded to two decimals; 0 when `total` is 0. */
4467
+ readonly percent: number;
4468
+ }
4469
+ /** One file's three ratios. */
4470
+ interface CoverageFile {
4471
+ readonly path: string;
4472
+ readonly lines: CoverageRatio;
4473
+ readonly functions: CoverageRatio;
4474
+ readonly branches: CoverageRatio;
4475
+ }
4476
+ /** A parsed `coverageReport.json`. */
4477
+ interface CoverageReport {
4478
+ /** The producer's timestamp, verbatim; empty when the document had none. */
4479
+ readonly date: string;
4480
+ readonly summary: {
4481
+ readonly lines: CoverageRatio;
4482
+ readonly functions: CoverageRatio;
4483
+ readonly branches: CoverageRatio;
4484
+ };
4485
+ /** Per-file ratios, sorted by path so the document is byte-stable. */
4486
+ readonly files: readonly CoverageFile[];
4487
+ }
4488
+ /**
4489
+ * Parse a `coverageReport.json`.
4490
+ *
4491
+ * Malformed JSON is a refusal that says so, not a `SyntaxError` from
4492
+ * `JSON.parse` surfacing through the CLI as an internal error.
4493
+ */
4494
+ declare function parseCoverageReport(text: string): CoverageReport;
4495
+ /**
4496
+ * The analyzer.
4497
+ *
4498
+ * No capability is required: the report is a scene file, and the scene either
4499
+ * carried one or did not. The fidelity is `approximate` — the numbers are exact
4500
+ * about the instrumented build and say nothing about the app as shipped, so a
4501
+ * consumer that read them as a property of the release would be making a claim
4502
+ * this package cannot support. The collector names the file they came from.
4503
+ */
4504
+ declare class CoverageAnalyzer implements Analyzer {
4505
+ readonly id = "coverage";
4506
+ readonly requires: never[];
4507
+ run(ctx: AnalyzeContext): Promise<AnalyzeResult>;
4508
+ }
4509
+
4409
4510
  /**
4410
4511
  * Executing one scenario action against a device.
4411
4512
  *
@@ -6084,6 +6185,229 @@ declare function isZip(bytes: Uint8Array): boolean;
6084
6185
  /** Read the central directory and return an archive over `bytes`. */
6085
6186
  declare function openZip(bytes: Uint8Array): ZipArchive;
6086
6187
 
6188
+ /**
6189
+ * A reader for the ELF headers, sections and symbols of an OHOS native binary.
6190
+ *
6191
+ * This exists for HapRay parity row 27. HapRay's `opt-detector` answers "what
6192
+ * optimization level was this built at, and was LTO on?" by feeding raw
6193
+ * `.text` bytes to a ~2 GB LSTM and a 551-feature SVM and printing the guess
6194
+ * as a percentage. An ELF records much of that directly — LTO leaves
6195
+ * `lto_priv.*` symbols and `.gnu.lto_*` sections, `-O0` leaves debug
6196
+ * sections, and the instruction mix is a fact about the bytes — so the
6197
+ * analyzer built on this reader reports what the file says and labels the
6198
+ * parts that are inference.
6199
+ *
6200
+ * What is here is deliberately narrow: the section header table, the two
6201
+ * symbol tables, and a decoder for the AArch64 instruction classes whose
6202
+ * density differs across optimization levels. There is no program-header
6203
+ * walk, no relocation processing, no dynamic-section parsing and no
6204
+ * disassembly — nothing this reader does not have a caller for.
6205
+ *
6206
+ * ## Refusals
6207
+ *
6208
+ * Every read is bounds-checked against the buffer, because a `.so` shipped
6209
+ * inside an app is attacker-controlled input as far as this package is
6210
+ * concerned. A bad magic, a short header, an unsupported class and a section
6211
+ * table pointing past the end are typed refusals naming the field, not bare
6212
+ * `RangeError`s from a `DataView`.
6213
+ */
6214
+ /** `e_machine` for AArch64, the only machine an OHOS app ships. */
6215
+ declare const EM_AARCH64 = 183;
6216
+ /** One section header, as much of it as a caller here needs. */
6217
+ interface ElfSection {
6218
+ readonly name: string;
6219
+ readonly type: number;
6220
+ readonly flags: number;
6221
+ /** Offset of the payload in the file. */
6222
+ readonly offset: number;
6223
+ /** Declared size. A `NOBITS` section declares one but occupies no bytes. */
6224
+ readonly size: number;
6225
+ /** Entry size for a table section (`sh_entsize`), else 0. */
6226
+ readonly entrySize: number;
6227
+ }
6228
+ /** One symbol, with the binding and type decoded from `st_info`. */
6229
+ interface ElfSymbol {
6230
+ readonly name: string;
6231
+ readonly bind: 'local' | 'global' | 'weak' | 'other';
6232
+ readonly type: 'notype' | 'func' | 'object' | 'section' | 'file' | 'other';
6233
+ readonly size: number;
6234
+ /** Section index the symbol belongs to; 0 for undefined, 0xfff1 for absolute. */
6235
+ readonly sectionIndex: number;
6236
+ }
6237
+ interface ElfFile {
6238
+ readonly bits: 32 | 64;
6239
+ readonly endian: 'little' | 'big';
6240
+ readonly machine: number;
6241
+ /** `e_type`: 1 relocatable, 2 executable, 3 shared object, 4 core. */
6242
+ readonly type: number;
6243
+ readonly sections: readonly ElfSection[];
6244
+ readonly symbols: readonly ElfSymbol[];
6245
+ /** The section with this name, or `undefined`. */
6246
+ readonly section: (name: string) => ElfSection | undefined;
6247
+ /** The payload of a section; empty for `NOBITS` and for a missing section. */
6248
+ readonly bytesOf: (name: string) => Uint8Array;
6249
+ }
6250
+ /**
6251
+ * Read an ELF's headers, sections and symbols.
6252
+ *
6253
+ * Only 64-bit little-endian is decoded. The class and endianness are read
6254
+ * first and refused by name, so a 32-bit or big-endian file gets a message
6255
+ * saying which shape was unsupported rather than a nonsensical section table.
6256
+ */
6257
+ declare function readElf(bytes: Uint8Array): ElfFile;
6258
+ /** The instruction classes whose density differs across optimization levels. */
6259
+ type InstructionClass = 'ret' | 'blr' | 'br' | 'bl' | 'b' | 'bcond' | 'cbz' | 'tbz' | 'adrp' | 'adr' | 'ldr' | 'str' | 'add' | 'vector' | 'other';
6260
+ /** Per-class instruction counts over a `.text` payload. */
6261
+ type InstructionCounts = Record<InstructionClass, number> & {
6262
+ total: number;
6263
+ };
6264
+ /**
6265
+ * Classify one AArch64 instruction word.
6266
+ *
6267
+ * The masks are the ARM ARM's fixed-field encodings for the classes whose
6268
+ * frequency a compiler changes: `ret`/`blr`/`br` (branch-register), `bl`/`b`
6269
+ * (immediate branch), `b.cond`, `cbz`/`cbnz`, `tbz`/`tbnz`, `adrp`/`adr`, and
6270
+ * the SIMD group. `other` covers everything else, which is most arithmetic.
6271
+ *
6272
+ * The order matters: `br`/`blr`/`ret` share a mask and are separated by their
6273
+ * `opc` field, and `b`/`bl` share a mask separated by bit 31.
6274
+ */
6275
+ declare function classifyInstruction(word: number): InstructionClass;
6276
+ /**
6277
+ * Count instruction classes over a payload.
6278
+ *
6279
+ * A trailing partial word is not an instruction and is not counted; a section
6280
+ * whose size is not a multiple of four is legal padding.
6281
+ */
6282
+ declare function countInstructions(payload: Uint8Array): InstructionCounts;
6283
+
6284
+ /**
6285
+ * Optimization-level and LTO detection for an OHOS native binary (HapRay
6286
+ * parity row 27).
6287
+ *
6288
+ * HapRay's `opt-detector` answers two questions — "which `-O` level was this
6289
+ * built at?" and "was LTO on?" — by feeding raw `.text` bytes to a ~2 GB
6290
+ * TensorFlow LSTM and a 551-feature SVM, then printing the guess as a
6291
+ * percentage. Its own source records the accuracy: at the threshold it ships,
6292
+ * low-optimization binaries are misreported 16.7% of the time, and the model
6293
+ * is AArch64-only.
6294
+ *
6295
+ * This does not ship that model. It reads the ELF instead, because the ELF
6296
+ * records several of the answers:
6297
+ *
6298
+ * - **LTO** leaves `lto_priv.*` symbols (GCC's own bookkeeping for a symbol
6299
+ * that survived link-time optimization with local visibility) and
6300
+ * `.gnu.lto_*` sections. Their presence is evidence; their absence from a
6301
+ * file that still has a symbol table is evidence of absence. A stripped file
6302
+ * with no symbol table is `unknown`, not `absent` — the markers may simply
6303
+ * have been removed.
6304
+ * - **The `-O` level** is recorded in `.comment` when the toolchain writes it.
6305
+ * That is the compiler's own statement, so it wins over any inference.
6306
+ * - **The instruction mix** is a fact about the bytes: SIMD density, branch
6307
+ * density and call/return balance all shift with optimization. When nothing
6308
+ * recorded the level, the mix produces a verdict labelled `inferred`, with
6309
+ * the signals named so a reader can disagree with it.
6310
+ *
6311
+ * What is never done is presenting an inference as a measurement. The
6312
+ * `fidelity` on each metric says which it is.
6313
+ */
6314
+
6315
+ /** One binary to inspect: its archive-relative path and its bytes. */
6316
+ interface BinaryInput {
6317
+ readonly path: string;
6318
+ readonly bytes: Uint8Array;
6319
+ }
6320
+ /** What the ELF itself records, before any judgement is applied. */
6321
+ interface BinaryFacts {
6322
+ readonly path: string;
6323
+ readonly size: number;
6324
+ readonly machine: number;
6325
+ /** Bytes of the `.text` section; 0 when the file has none. */
6326
+ readonly textBytes: number;
6327
+ readonly instructions: InstructionCounts;
6328
+ /**
6329
+ * `present` when an LTO marker was found, `absent` when a symbol table
6330
+ * exists and none was, `unknown` when there is no symbol table to search.
6331
+ */
6332
+ readonly lto: 'present' | 'absent' | 'unknown';
6333
+ /** The symbols and sections that proved LTO, in the order they were found. */
6334
+ readonly ltoMarkers: readonly string[];
6335
+ readonly debug: boolean;
6336
+ readonly debugSections: readonly string[];
6337
+ /** NUL-separated strings from `.comment`, in file order. */
6338
+ readonly compiler: readonly string[];
6339
+ /** `-O` flags the build recorded, in file order. */
6340
+ readonly recordedFlags: readonly string[];
6341
+ readonly symbols: {
6342
+ readonly functions: number;
6343
+ readonly global: number;
6344
+ readonly local: number;
6345
+ readonly weak: number;
6346
+ };
6347
+ /** True when no function symbol survived, so symbol-level LTO evidence is gone. */
6348
+ readonly stripped: boolean;
6349
+ }
6350
+ type OptimizationLevel = 'unoptimized' | 'low' | 'medium' | 'high' | 'unknown';
6351
+ /** How a level was decided: the compiler said so, or the mix was read. */
6352
+ type OptimizationBasis = 'recorded' | 'inferred' | 'none';
6353
+ interface OptimizationVerdict {
6354
+ readonly level: OptimizationLevel;
6355
+ readonly basis: OptimizationBasis;
6356
+ /** The signals that produced an `inferred` verdict; empty otherwise. */
6357
+ readonly signals: readonly string[];
6358
+ }
6359
+ /** One inspected binary, with the facts and the verdict kept apart. */
6360
+ interface BinaryReport {
6361
+ readonly path: string;
6362
+ readonly facts: BinaryFacts;
6363
+ readonly verdict: OptimizationVerdict;
6364
+ }
6365
+ interface OptimizationAnalysis {
6366
+ readonly schemaVersion: 1;
6367
+ readonly package: string;
6368
+ readonly binaries: readonly BinaryReport[];
6369
+ readonly totals: {
6370
+ readonly binaries: number;
6371
+ readonly lto: number;
6372
+ readonly debug: number;
6373
+ readonly stripped: number;
6374
+ };
6375
+ readonly metrics: Metric[];
6376
+ readonly evidence: Evidence[];
6377
+ }
6378
+ /**
6379
+ * Inspect one ELF.
6380
+ *
6381
+ * A refusal names the binary, because a package holds many and "not an ELF"
6382
+ * alone would not say which one the caller has to look at.
6383
+ */
6384
+ declare function inspectBinary(input: BinaryInput): BinaryFacts;
6385
+ /**
6386
+ * Decide the optimization level, preferring what the compiler recorded.
6387
+ *
6388
+ * The inference is deliberately coarse: three signals, two thresholds. A
6389
+ * richer model would be a guess dressed as a measurement, which is the defect
6390
+ * this row exists to fix.
6391
+ */
6392
+ declare function classifyOptimization(facts: BinaryFacts): OptimizationVerdict;
6393
+ /**
6394
+ * Pull the arm64 shared objects out of a package, or take a bare `.so`.
6395
+ *
6396
+ * An `ar` archive is refused by name: it is a third container format, and
6397
+ * returning an empty report for one would read as "no optimizations found"
6398
+ * when the truth is "this package did not look".
6399
+ */
6400
+ declare function extractBinaries(input: BinaryInput): BinaryInput[];
6401
+ /**
6402
+ * Measure every binary and summarise the package.
6403
+ *
6404
+ * Binaries are sorted by path, and every number is derived from the bytes, so
6405
+ * two runs over the same package produce the same document.
6406
+ */
6407
+ declare function analyzeBinaries(inputs: readonly BinaryInput[], packageName: string): OptimizationAnalysis;
6408
+ /** Wrap an analysis as the `optimization` section the report renderer takes. */
6409
+ declare function optimizationSection(analysis: OptimizationAnalysis): AnalyzerSection;
6410
+
6087
6411
  type FileCategory = 'images' | 'videos' | 'audio' | 'fonts' | 'scripts' | 'styles' | 'binaries' | 'bytecode' | 'data' | 'other';
6088
6412
  /** One archive entry, measured. Paths are archive names, forward slashes. */
6089
6413
  interface InventoryFile {
@@ -6331,4 +6655,4 @@ interface FlamegraphPageInput {
6331
6655
  */
6332
6656
  declare function renderFlamegraphHtml(input: FlamegraphPageInput): string;
6333
6657
 
6334
- export { ANIMATION_BANDS, type ActionContext, type ActionDevice, type ActionOutcome, type ActiveAlloc, type AnalyzeContext, type AnalyzeResult, type Analyzer, type AnalyzerRun, type AnalyzerSection, type AnimationAnalysis, type AnimationLabel, type AnimationSeverity, type AppIdentity, BUNDLE_RENDERED_FILES, type BaselineComparison, type BelowThresholdPattern, type BinderAnalysis, BinderAnalyzer, type BinderEndpoint, type BinderEvent, type BinderInterfaceStat, type BinderProcessStat, BinderQuery, type BinderThreadStat, type BinderTransaction, type BundleRerenderInput, CATEGORY_EXTENSIONS, CATEGORY_MAX_BYTES, COLLECTOR_NAMES, type CallchainSample, type CallstackEvent, type CallstackEventWithArgs, CallstackQuery, type CapabilityId, type CapabilityInputs, CapabilityMatrix, type CapabilityState, type CaseLoad, type CategoryTotal, type CollectOptions, type CollectSession, type Collector, type CollectorName, type CompiledRule, type ComponentReuse, ComponentReuseAnalyzer, type ConnectOptions, type ContentPattern, type CreateEmulatorRequest, DEFAULT_HILOG_RULES, DEFAULT_QUERY_LIMIT, DEVICE_PERF_PATH, DEVICE_SCREENSHOT_PATH, DEVICE_UI_PATH, type DeltaStatus, type DepGraph, type DepGraphEdge, type DepGraphFile, Device, type DeviceDeps, type DeviceIdentity, DeviceNotFoundError, type DiscoveredCase, type DrillDownHandle, type DuplicateGroup, EXCLUDE_PATTERNS, EmptyFrameAnalyzer, type EmptyFrameFilter, type EmulatorBackend, EmulatorClient, type EmulatorClientOptions, EmulatorCommandError, type EmulatorImage, EmulatorImageMissingError, type EmulatorInstance, EmulatorLifecycle, type EmulatorLifecycleOptions, EmulatorNotFoundError, type EmulatorStartResult, type EmulatorStopResult, type Env, type Evidence, type EvidenceKind, type ExpectPresent, type ExpectationOutcome, type ExplorationAction, type ExplorationClock, type ExplorationDevice, type ExplorationDeviceOptions, type ExplorationHost, type ExplorationOptions, type ExplorationOutcome, type ExplorationResult, type ExplorationState, type ExplorationStep, type ExplorationStrategy, type ExplorationTargetDevice, FLAMEGRAPH_FILES, FPS_COMMAND, FTRACE_CATEGORIES, FaultTreeAnalyzer, type FaultTreeSignals, type Fidelity, type FileCategory, type FileRule, FlamegraphAnalyzer, type FlamegraphPageInput, type FoldedStack, type FpsBucket, type FpsWindow, type Frame, FrameAnalyzer, type FrameFlag, FrameLoadAnalyzer, FrameLoadIndex, type FrameLoadIndexInput, type FrameLoadThread, FrameQuery, type FrameStats, type FrameType, type FtraceOptions, GEOMETRY_TOLERANCE_PX, GcAnalyzer, type GcSignals, type Gesture, GestureDriver, type GestureResult, HILOG_COMMAND, HIPROFILER_PLUGIN_NAMES, HITCH_COMMAND, HITRACE_DEFAULT_CATEGORIES, type HapAnalysis, type HapPackage, type HarEdge, Hdc, HdcNotFoundError, type HdcOptions, type HdcResult, type HdcSlice, type HdcTarget, type HidumperCapture, HidumperCollector, type HidumperSnapshot, HilogAnalyzer, HilogCollector, type HilogLevel, type HilogLine, type HilogMatch, type HilogParseOptions, type HilogRule, type HiperfCapture, type HiperfCollectOptions, HiperfCollector, type HiprofilerCollectOptions, type HiprofilerCollectRequest, HiprofilerCollector, type HiprofilerConfigOptions, type HiprofilerPlugin, type HiprofilerPluginName, HitraceCollector, IGNORED_ATTRIBUTES, type ImageComparison, IngestError, InstantQuery, type InventoryFile, type JsheapCapture, JsheapCollector, MAX_QUERY_LIMIT, METRIC_DIRECTIONS, MIN_BUFFER_PAGES, MIN_HASH_PIXELS, MemMeasureQuery, MemoryAnalyzer, MemoryMeasureAnalyzer, type MemoryPluginOptions, type MetadataPattern, type Metric, type MetricDelta, type MetricDirection, type MetricUnit, type ModuleDecl, type NamedQueryDefinition, type NamedQueryInfo, type NamedQueryResult, type NativeCategory, type NativeEventKind, type NativeHookEvent, type NativeHookFrame, NativeHookQuery, type NativeHookStatistic, NativeMemoryAnalyzer, type NativeMemoryResult, type NativeNames, type NativeTimelineBucket, type NativehookOptions, OhosPerfError, type OptimizationPotential, type OversizedFile, PARITY_ROWS, PLANE_A_PLUGINS, type ParityRow, type ParityStatus, type PerfCallchain, type PerfFileAttribution, type PerfFunction, type PerfLeafAttribution, PerfQuery, type PerfSampleRow, type PerfThread, type PixelOnlyChange, type ProbeResult, type ProbeRunner, type ProbeSnapshot, type ProcessInfo, type ProcessMeasure, type ProcessMeasureFilter, ProcessQuery, ProcfsCollector, type ProcfsSample, type ProcfsStatus, type Provenance, type QueryArgument, type QueryContext, type QueryHandle, REPORT_SCHEMA_VERSION, type Rect, type RedundancyLevel, type RedundancyType, RedundantFileAnalyzer, type RedundantFileEntry, type RedundantFileReport, type RedundantThreadPattern, type RedundantThreadsSummary, type RegionPixelChange, RenderAnalyzer, type ReportGenerator, type ReportInput, type ReportModel, type ReportScenario, type ReportSection, type ReportSummary, type ReportTotals, type RgbaImage, RsSkipAnalyzer, type RsSkipFrame, type RsSkipResult, type RsSkipTraceMethod, type RuleMatch, type RuleMatchKind, type RunOptions, type RunResult, type RunStepResult, type RunnerCollectOptions, type RunnerDevice, SECTION_TITLES, type Scenario, type ScenarioAction, ScenarioRunner, type ScenarioStep, Scene, type SceneLayout, type SceneMetadata, type SceneStep, type SceneStepRef, type ScenesComparison, SchedQuery, type SchedSlice, type ScreenshotCapture, ScreenshotCollector, type Selector, type SelectorRect, type SmapsRollup, StartupAnalyzer, StartupQuery, type StartupRecord, type StepCapture, type StepComparison, type StepExpectation, type StepStatus, Streamer, StreamerNotFoundError, type StreamerOptions, type SymbolStat, SymbolsAnalyzer, TECH_RULES, type TechRule, type ThreadAnalysis, type ThreadAnalysisSummary, ThreadAnalyzer, type ThreadInfo, ThreadQuery, type ThreadState, ThreadStateQuery, type ThreadWakeupResult, type ThreadWakeupThread, type TimeRange, type TimingCycle, type TraceCollectOptions, type Trend, type TrendOrder, type TrendPoint, type TrendRun, type TrendSeries, UI_DIFF_FILES, UiAnalyzer, type UiCompareOptions, type UiDiff, type UiDiffSide, type UiNode, type UiTreeDiff, type UiTreeDifference, UitestCollector, type UnmeasuredRegion, type UnreleasedRow, type VsyncAnalysis, VsyncAnalyzer, type VsyncPeriod, type VsyncPeriodKind, type VsyncSeverity, type WakeupEvent, type WindowHitches, type ZipArchive, type ZipEntry, aggregateUnreleased, analyseAnimations, analyzeHap, analyzeThreadWakeup, animationSeverity, buildDepGraph, buildHiprofilerConfig, buildInventory, buildMatrix, buildNativeTimeline, buildReport, buildTrend, categorize, classifyNativePath, compareImages, compareRegion, compareResults, compareSceneDirs, compareScenes, compileRules, computeBinderAnalysis, computeComponentReuse, computeFaultTree, computeFpsWindows, computeGc, computeRsSkip, computeThreadAnalysis, computeVsyncAnomalies, connect, createSceneLayout, cropRegion, decodePng, defaultAnalyzers, deviceExplorationHost, dhash, diffTrees, discoverCases, encodePng, escapeHtml, evidence, executeAction, explorationDevice, explore, filterEmptyFrames, flattenUiTree, ftracePlugin, gpuPlugin, hapSection, hashTree, hiperfRecordCommand, ingestScene, isUnresolvedSymbol, isZip, loadCases, lookupQuery, markRegions, matchHapRules, matchRules, matchSelector, memoryPlugin, metric, nativeEventKind, nativehookPlugin, nodeIdentity, openDb, openZip, pairNativeMemory, paritySummary, parseBounds, parseFpsCounts, parseHilogLine, parseHilogText, parseHiperfSummary, parseHitches, parseProcfsStatus, parseRedundantFile, parseScenario, parseSelector, parseSmapsRollup, planNextAction, queryDefinitions, readHidumperCapture, readHilogText, readJsheapSnapshot, readProcfsSamples, readSceneMetadata, readUiTree, renderBundle, renderEvidenceCsv, renderFlamegraphHtml, renderFlamegraphSvg, renderMetricsCsv, renderReportHtml, renderReportJson, renderReportXlsx, renderScenesComparison, renderSummaryJson, renderTrendHtml, renderTrendJson, renderUiDiffHtml, resolveAppIdentity, resolveAppIpids, resolveQueryLimit, resolveSelector, round2HalfEven, runAnalyzerSections, runAnalyzers, runDrillDown, runNamedQuery, runProbe, sortSteps, summarizeReport, tableRowCounts, trendRunFromReport, unknownQueryError, validateRules, writeProcfsSamples, writeRunFiles, writeSceneMetadata, xpowerPlugin };
6658
+ export { ANIMATION_BANDS, type ActionContext, type ActionDevice, type ActionOutcome, type ActiveAlloc, type AnalyzeContext, type AnalyzeResult, type Analyzer, type AnalyzerRun, type AnalyzerSection, type AnimationAnalysis, type AnimationLabel, type AnimationSeverity, type AppIdentity, BUNDLE_RENDERED_FILES, type BaselineComparison, type BelowThresholdPattern, type BinaryFacts, type BinaryInput, type BinaryReport, type BinderAnalysis, BinderAnalyzer, type BinderEndpoint, type BinderEvent, type BinderInterfaceStat, type BinderProcessStat, BinderQuery, type BinderThreadStat, type BinderTransaction, type BundleRerenderInput, CATEGORY_EXTENSIONS, CATEGORY_MAX_BYTES, COLLECTOR_NAMES, type CallchainSample, type CallstackEvent, type CallstackEventWithArgs, CallstackQuery, type CapabilityId, type CapabilityInputs, CapabilityMatrix, type CapabilityState, type CaseLoad, type CategoryTotal, type CollectOptions, type CollectSession, type Collector, type CollectorName, type CompiledRule, type ComponentReuse, ComponentReuseAnalyzer, type ConnectOptions, type ContentPattern, CoverageAnalyzer, type CoverageCounts, type CoverageFile, type CoverageRatio, type CoverageReport, type CreateEmulatorRequest, DEFAULT_HILOG_RULES, DEFAULT_QUERY_LIMIT, DEVICE_PERF_PATH, DEVICE_SCREENSHOT_PATH, DEVICE_UI_PATH, type DeltaStatus, type DepGraph, type DepGraphEdge, type DepGraphFile, Device, type DeviceDeps, type DeviceIdentity, DeviceNotFoundError, type DiscoveredCase, type DrillDownHandle, type DuplicateGroup, EM_AARCH64, EXCLUDE_PATTERNS, type ElfFile, type ElfSection, type ElfSymbol, EmptyFrameAnalyzer, type EmptyFrameFilter, type EmulatorBackend, EmulatorClient, type EmulatorClientOptions, EmulatorCommandError, type EmulatorImage, EmulatorImageMissingError, type EmulatorInstance, EmulatorLifecycle, type EmulatorLifecycleOptions, EmulatorNotFoundError, type EmulatorStartResult, type EmulatorStopResult, type Env, type Evidence, type EvidenceKind, type ExpectPresent, type ExpectationOutcome, type ExplorationAction, type ExplorationClock, type ExplorationDevice, type ExplorationDeviceOptions, type ExplorationHost, type ExplorationOptions, type ExplorationOutcome, type ExplorationResult, type ExplorationState, type ExplorationStep, type ExplorationStrategy, type ExplorationTargetDevice, FLAMEGRAPH_FILES, FPS_COMMAND, FTRACE_CATEGORIES, FaultTreeAnalyzer, type FaultTreeSignals, type Fidelity, type FileCategory, type FileRule, FlamegraphAnalyzer, type FlamegraphPageInput, type FoldedStack, type FpsBucket, type FpsWindow, type Frame, FrameAnalyzer, type FrameFlag, FrameLoadAnalyzer, FrameLoadIndex, type FrameLoadIndexInput, type FrameLoadThread, FrameQuery, type FrameStats, type FrameType, type FtraceOptions, GEOMETRY_TOLERANCE_PX, GcAnalyzer, type GcSignals, type Gesture, GestureDriver, type GestureResult, HILOG_COMMAND, HIPROFILER_PLUGIN_NAMES, HITCH_COMMAND, HITRACE_DEFAULT_CATEGORIES, type HapAnalysis, type HapPackage, type HarEdge, Hdc, HdcNotFoundError, type HdcOptions, type HdcResult, type HdcSlice, type HdcTarget, type HidumperCapture, HidumperCollector, type HidumperSnapshot, HilogAnalyzer, HilogCollector, type HilogLevel, type HilogLine, type HilogMatch, type HilogParseOptions, type HilogRule, type HiperfCapture, type HiperfCollectOptions, HiperfCollector, type HiprofilerCollectOptions, type HiprofilerCollectRequest, HiprofilerCollector, type HiprofilerConfigOptions, type HiprofilerPlugin, type HiprofilerPluginName, HitraceCollector, IGNORED_ATTRIBUTES, type ImageComparison, IngestError, InstantQuery, type InstructionClass, type InstructionCounts, type InventoryFile, type JsheapCapture, JsheapCollector, MAX_QUERY_LIMIT, METRIC_DIRECTIONS, MIN_BUFFER_PAGES, MIN_HASH_PIXELS, MemMeasureQuery, MemoryAnalyzer, MemoryMeasureAnalyzer, type MemoryPluginOptions, type MetadataPattern, type Metric, type MetricDelta, type MetricDirection, type MetricUnit, type ModuleDecl, type NamedQueryDefinition, type NamedQueryInfo, type NamedQueryResult, type NativeCategory, type NativeEventKind, type NativeHookEvent, type NativeHookFrame, NativeHookQuery, type NativeHookStatistic, NativeMemoryAnalyzer, type NativeMemoryResult, type NativeNames, type NativeTimelineBucket, type NativehookOptions, OhosPerfError, type OptimizationAnalysis, type OptimizationBasis, type OptimizationLevel, type OptimizationPotential, type OptimizationVerdict, type OversizedFile, PARITY_ROWS, PLANE_A_PLUGINS, type ParityRow, type ParityStatus, type PerfCallchain, type PerfFileAttribution, type PerfFunction, type PerfLeafAttribution, PerfQuery, type PerfSampleRow, type PerfThread, type PixelOnlyChange, type ProbeResult, type ProbeRunner, type ProbeSnapshot, type ProcessInfo, type ProcessMeasure, type ProcessMeasureFilter, ProcessQuery, ProcfsCollector, type ProcfsSample, type ProcfsStatus, type Provenance, type QueryArgument, type QueryContext, type QueryHandle, REPORT_SCHEMA_VERSION, type Rect, type RedundancyLevel, type RedundancyType, RedundantFileAnalyzer, type RedundantFileEntry, type RedundantFileReport, type RedundantThreadPattern, type RedundantThreadsSummary, type RegionPixelChange, RenderAnalyzer, type ReportGenerator, type ReportInput, type ReportModel, type ReportScenario, type ReportSection, type ReportSummary, type ReportTotals, type RgbaImage, RsSkipAnalyzer, type RsSkipFrame, type RsSkipResult, type RsSkipTraceMethod, type RuleMatch, type RuleMatchKind, type RunOptions, type RunResult, type RunStepResult, type RunnerCollectOptions, type RunnerDevice, SECTION_TITLES, type Scenario, type ScenarioAction, ScenarioRunner, type ScenarioStep, Scene, type SceneLayout, type SceneMetadata, type SceneStep, type SceneStepRef, type ScenesComparison, SchedQuery, type SchedSlice, type ScreenshotCapture, ScreenshotCollector, type Selector, type SelectorRect, type SmapsRollup, StartupAnalyzer, StartupQuery, type StartupRecord, type StepCapture, type StepComparison, type StepExpectation, type StepStatus, Streamer, StreamerNotFoundError, type StreamerOptions, type SymbolStat, SymbolsAnalyzer, TECH_RULES, type TechRule, type ThreadAnalysis, type ThreadAnalysisSummary, ThreadAnalyzer, type ThreadInfo, ThreadQuery, type ThreadState, ThreadStateQuery, type ThreadWakeupResult, type ThreadWakeupThread, type TimeRange, type TimingCycle, type TraceCollectOptions, type Trend, type TrendOrder, type TrendPoint, type TrendRun, type TrendSeries, UI_DIFF_FILES, UiAnalyzer, type UiCompareOptions, type UiDiff, type UiDiffSide, type UiNode, type UiTreeDiff, type UiTreeDifference, UitestCollector, type UnmeasuredRegion, type UnreleasedRow, type VsyncAnalysis, VsyncAnalyzer, type VsyncPeriod, type VsyncPeriodKind, type VsyncSeverity, type WakeupEvent, type WindowHitches, type ZipArchive, type ZipEntry, aggregateUnreleased, analyseAnimations, analyzeBinaries, analyzeHap, analyzeThreadWakeup, animationSeverity, buildDepGraph, buildHiprofilerConfig, buildInventory, buildMatrix, buildNativeTimeline, buildReport, buildTrend, categorize, classifyInstruction, classifyNativePath, classifyOptimization, compareImages, compareRegion, compareResults, compareSceneDirs, compareScenes, compileRules, computeBinderAnalysis, computeComponentReuse, computeFaultTree, computeFpsWindows, computeGc, computeRsSkip, computeThreadAnalysis, computeVsyncAnomalies, connect, countInstructions, createSceneLayout, cropRegion, decodePng, defaultAnalyzers, deviceExplorationHost, dhash, diffTrees, discoverCases, encodePng, escapeHtml, evidence, executeAction, explorationDevice, explore, extractBinaries, filterEmptyFrames, flattenUiTree, ftracePlugin, gpuPlugin, hapSection, hashTree, hiperfRecordCommand, ingestScene, inspectBinary, isUnresolvedSymbol, isZip, loadCases, lookupQuery, markRegions, matchHapRules, matchRules, matchSelector, memoryPlugin, metric, nativeEventKind, nativehookPlugin, nodeIdentity, openDb, openZip, optimizationSection, pairNativeMemory, paritySummary, parseBounds, parseCoverageReport, parseFpsCounts, parseHilogLine, parseHilogText, parseHiperfSummary, parseHitches, parseProcfsStatus, parseRedundantFile, parseScenario, parseSelector, parseSmapsRollup, planNextAction, queryDefinitions, readElf, readHidumperCapture, readHilogText, readJsheapSnapshot, readProcfsSamples, readSceneMetadata, readUiTree, renderBundle, renderEvidenceCsv, renderFlamegraphHtml, renderFlamegraphSvg, renderMetricsCsv, renderReportHtml, renderReportJson, renderReportXlsx, renderScenesComparison, renderSummaryJson, renderTrendHtml, renderTrendJson, renderUiDiffHtml, resolveAppIdentity, resolveAppIpids, resolveQueryLimit, resolveSelector, round2HalfEven, runAnalyzerSections, runAnalyzers, runDrillDown, runNamedQuery, runProbe, sortSteps, summarizeReport, tableRowCounts, trendRunFromReport, unknownQueryError, validateRules, writeProcfsSamples, writeRunFiles, writeSceneMetadata, xpowerPlugin };