Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 5 additions & 18 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
name: Tests

on:
- push
- pull_request
push:
branches:
- master
pull_request:

jobs:
unit-tests:
Expand Down Expand Up @@ -69,21 +71,6 @@ jobs:
- name: Check formatting
run: yarn check-format

lint:
name: Linting
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version-file: '.node-version'
- name: Install dependencies
run: yarn --frozen-lockfile --non-interactive --silent --ignore-scripts
- name: Lint flipper plugin
run: yarn workspace flipper-plugin-performance run lint

build:
name: Package builds
runs-on: ubuntu-latest
Expand All @@ -98,5 +85,5 @@ jobs:
run: yarn --frozen-lockfile --non-interactive --silent --ignore-scripts
- name: Build packages
env:
PACKAGES: flipper-plugin-performance react-native-performance
PACKAGES: react-native-performance
run: for p in $PACKAGES; do pushd packages/$p && npm pack --dry-run && popd; done
3 changes: 1 addition & 2 deletions .watchmanconfig
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"examples/vanilla/ios",
"examples/vanilla/android",
"examples/react-native-navigation/ios",
"examples/react-native-navigation/android",
"packages/flipper-plugin-react-native-performance/dist"
"examples/react-native-navigation/android"
]
}
28 changes: 5 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,39 +14,21 @@ An implementation of the [`Performance` API](https://developer.mozilla.org/en-US
- Collect native traces such as script execution and time to interactive of root view
- Collect native metrics in development such as JS bundle size

### [`flipper-plugin-performance`](https://github.com/oblador/react-native-performance/blob/master/packages/flipper-plugin-performance/README.md)

Visualize performance tracing on a timeline and generic metrics in the debug tool Flipper.

### [`react-native-performance-flipper-reporter`](https://github.com/oblador/react-native-performance/blob/master/packages/react-native-performance-flipper-reporter/README.md)

Connect the `react-native-performance` library with the `flipper-plugin-performance` visualization tool in development.

### [`isomorphic-performance`](https://github.com/oblador/react-native-performance/blob/master/packages/isomorphic-performance/README.md)

Isomorphic Performance API for Node, Browser & React Native. Useful if your app targets both web and native.

## Demo

See the projects in the [`examples`](https://github.com/oblador/flipper-plugin-react-native-performance/tree/master/examples) folder.

## Development

Make sure to have [`yarn`](https://classic.yarnpkg.com/lang/en/) v1 installed and run `yarn` in the root folder to install dependencies for all packages.
See the projects in the [`examples`](https://github.com/oblador/react-native-performance/tree/master/examples) folder.

Uninstall the Flipper Performance plugin if previously installed. Then edit your `~/.flipper/config.json` to look something like this:
## Devtools integration

```
{
"pluginPaths": ["/path/to/react-native-performance/packages"]
}
```
With Flipper deprecated, the best replacement is currently [Rozenite](https://www.rozenite.dev) that supports `react-native-performance` out of the box with an [official plugin](https://www.rozenite.dev/docs/official-plugins/performance-monitor).

Continously compile the plugin as you edit with:
## Development

```bash
yarn workspace flipper-plugin-performance run watch
```
Make sure to have [`yarn`](https://classic.yarnpkg.com/lang/en/) v1 installed and run `yarn` in the root folder to install dependencies for all packages.

Run the example app with:

Expand Down
4 changes: 2 additions & 2 deletions examples/vanilla/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1238,7 +1238,7 @@ PODS:
- React-jsiexecutor
- React-RCTFBReactNativeSpec
- ReactCommon/turbomodule/core
- react-native-performance (5.1.2):
- react-native-performance (5.1.4):
- DoubleConversion
- glog
- hermes-engine
Expand Down Expand Up @@ -1799,7 +1799,7 @@ SPEC CHECKSUMS:
React-logger: 763728cf4eebc9c5dc9bfc3649e22295784f69f3
React-Mapbuffer: 63278529b5cf531a7eaf8fc71244fabb062ca90c
React-microtasksnativemodule: 6a39463c32ce831c4c2aa8469273114d894b6be9
react-native-performance: 0550198d1e7cc17456ad48158e10d7f6047255ff
react-native-performance: a3fdb40c3769e7e661387152a44d460388b574ac
React-NativeModulesApple: fd0545efbb7f936f78edd15a6564a72d2c34bb32
React-perflogger: 5f8fa36a8e168fb355efe72099efe77213bc2ac6
React-performancetimeline: 8c0ecfa1ae459cc5678a65f95ac3bf85644d6feb
Expand Down
9 changes: 1 addition & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,6 @@
"packages": [
"examples/*",
"packages/*"
],
"nohoist": [
"**/flipper",
"**/flipper/**",
"**/flipper-pkg",
"**/flipper-pkg/**"
]
},
"devDependencies": {
Expand All @@ -31,8 +25,7 @@
"resolutions": {
"@types/eslint": "^7.28.2",
"@types/node": "*",
"@types/react": "^18.0.24",
"flipper-ui-core": "0.0.0"
"@types/react": "^18.0.24"
},
"packageManager": "yarn@1.22.22+sha1.ac34549e6aa8e7ead463a7407e1c7390f61a6610"
}
1 change: 0 additions & 1 deletion packages/flipper-plugin-performance/LICENSE

This file was deleted.

36 changes: 0 additions & 36 deletions packages/flipper-plugin-performance/README.md

This file was deleted.

1 change: 0 additions & 1 deletion packages/flipper-plugin-performance/index.js

This file was deleted.

44 changes: 0 additions & 44 deletions packages/flipper-plugin-performance/package.json

This file was deleted.

74 changes: 0 additions & 74 deletions packages/flipper-plugin-performance/src/App.jsx

This file was deleted.

81 changes: 0 additions & 81 deletions packages/flipper-plugin-performance/src/Metrics.jsx

This file was deleted.

Loading