@amazon-devices/kepler-performance-api
v0.1.2
Published
## Usage This package contains Performance APIs, distributed as part of the Kepler Performance Module (kepler-performance-api) npm package. See [this page](https://developer.amazon.com/docs/kepler/ks-measure-app-kpis.html#prerequisites) for more context.
Downloads
11,398
Readme
Kepler Studio Performance Module
Usage
This package contains Performance APIs, distributed as part of the Kepler Performance Module (kepler-performance-api) npm package. See this page for more context.
To use a supported Performance API:
- Add npm package as a dependency in your
package.json:
npm install @amazon-devices/kepler-performance-api- Import kepler-performance-api:
import { useReportFullyDrawn } from '@amazon-devices/kepler-performance-api';- Refer to API signature and invoke API appropriately, example
const rfdCallback = useReportFullyDrawn();
useEffect(() => {
rfdCallback();
}, [rfdCallback]);
```
More details can be found [here](https://developer.amazon.com/docs/kepler/ks-measure-app-kpis.html#fully-drawn-marker).