@perfa/native
TypeScript icon, indicating that this package has built-in type declarations

0.2.0 • Public • Published

@perfa/native npm

Measure React Native app performance.

Install

$ yarn add @perfa/native

Usage

type TGetPerfDataOptions = {
  entryPointPath: string,
  dependencyNames?: string[],
}

type TPerfData = {
  viewCount: number,
  usedMemory: number,
}}

const getAndroidPerfData: (options: TGetPerfDataOptions) => Promise<TPerfData>

const getIosPerfData: (options: TGetPerfDataOptions) => Promise<TPerfData>
import { getAndroidPerfData, getIosPerfData } from '@perfa/native'

const androidPerfData = await getAndroidPerfData({
  entryPointPath: './App',
})

const iosPerfData = await getIosPerfData({
  entryPointPath: './App',
})

Metrics

viewCount

Count of React Native createView events passing through the Bridge.

usedMemory

App memory usage, in bytes.

Readme

Keywords

none

Package Sidebar

Install

npm i @perfa/native

Weekly Downloads

1

Version

0.2.0

License

MIT

Unpacked Size

9.06 kB

Total Files

15

Last publish

Collaborators

  • deepsweet
  • psxcode