@lanternajs/android 0.0.1 → 0.0.3
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/README.md +32 -0
- package/package.json +10 -5
package/README.md
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# @lanternajs/android
|
|
2
|
+
|
|
3
|
+
Android performance data collection via `adb` and Perfetto for [Lanterna](https://github.com/rogerfuentes/lanterna) — a CLI-first performance profiler for React Native and Expo apps.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @lanternajs/android
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## What's inside
|
|
12
|
+
|
|
13
|
+
- **Collectors**: Gather FPS, CPU, memory, and frame drop metrics from Android devices
|
|
14
|
+
- **Parsers**: Parse output from `dumpsys gfxinfo`, `dumpsys meminfo`, and `top`
|
|
15
|
+
- **Process management**: Find and monitor Android app processes via ADB
|
|
16
|
+
|
|
17
|
+
## Usage
|
|
18
|
+
|
|
19
|
+
This package is primarily used internally by `@lanternajs/cli`. If you're building custom Android profiling tooling:
|
|
20
|
+
|
|
21
|
+
```ts
|
|
22
|
+
import { collectAndroidMetrics } from "@lanternajs/android";
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## Requirements
|
|
26
|
+
|
|
27
|
+
- `adb` available on PATH
|
|
28
|
+
- Android device or emulator connected
|
|
29
|
+
|
|
30
|
+
## License
|
|
31
|
+
|
|
32
|
+
Apache-2.0 — see [LICENSE](https://github.com/rogerfuentes/lanterna/blob/main/LICENSE)
|
package/package.json
CHANGED
|
@@ -1,20 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lanternajs/android",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
|
-
"files": [
|
|
7
|
+
"files": [
|
|
8
|
+
"dist",
|
|
9
|
+
"src"
|
|
10
|
+
],
|
|
8
11
|
"license": "Apache-2.0",
|
|
9
12
|
"description": "Android performance data collection via adb and perfetto for Lanterna",
|
|
10
13
|
"repository": {
|
|
11
14
|
"type": "git",
|
|
12
|
-
"url": "https://github.com/
|
|
15
|
+
"url": "https://github.com/rogerfuentes/lanterna.git",
|
|
13
16
|
"directory": "packages/android"
|
|
14
17
|
},
|
|
15
|
-
"publishConfig": {
|
|
18
|
+
"publishConfig": {
|
|
19
|
+
"access": "public"
|
|
20
|
+
},
|
|
16
21
|
"dependencies": {
|
|
17
|
-
"@lanternajs/core": "
|
|
22
|
+
"@lanternajs/core": "^0.0.3"
|
|
18
23
|
},
|
|
19
24
|
"scripts": {
|
|
20
25
|
"build": "tsc --project tsconfig.build.json",
|