@onekeyfe/react-native-perf-memory 3.0.179-alpha.2026101502 → 3.0.179-alpha.302

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/README.md +12 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -42,6 +42,18 @@ Use bounded sampling intervals suited to diagnostics rather than requesting a
42
42
  sample on every render. The exported interface is defined in
43
43
  [src/ReactNativePerfMemory.nitro.ts](src/ReactNativePerfMemory.nitro.ts).
44
44
 
45
+ ## Reading a diagnostic sample
46
+
47
+ The named `ReactNativePerfMemory` object exposes only `getMemoryUsage()`.
48
+ `MemoryUsage` is exported as a TypeScript type; it contains `rss`, with no
49
+ JavaScript-heap breakdown, per-runtime allocation count or sampling timestamp.
50
+ Record a timestamp in the caller if a time series needs one.
51
+
52
+ A sample is process-wide even when requested from one JavaScript runtime.
53
+ Keep platform, preferred/fallback measurement semantics and units alongside
54
+ results when comparing runs. The module's zero fallback should be treated as
55
+ an unavailable sample rather than included as measured zero consumption.
56
+
45
57
  ## License
46
58
 
47
59
  MIT.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onekeyfe/react-native-perf-memory",
3
- "version": "3.0.179-alpha.2026101502",
3
+ "version": "3.0.179-alpha.302",
4
4
  "description": "Native process memory sampling for OneKey on iOS and Android",
5
5
  "main": "./lib/module/index.js",
6
6
  "types": "./lib/typescript/src/index.d.ts",