New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More β†’
Socket
Sign inDemoInstall
Socket

@react-native-firebase/perf

Package Overview
Dependencies
Maintainers
2
Versions
260
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@react-native-firebase/perf

React Native Firebase - Performance Monitoring

  • 6.0.0-alpha.14
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
107K
increased by4.51%
Maintainers
2
Weekly downloads
Β 
Created

What is @react-native-firebase/perf?

@react-native-firebase/perf is a performance monitoring library for React Native applications that allows developers to measure the performance of their apps. It provides tools to track the duration of specific tasks, monitor network requests, and gain insights into app performance to help optimize and improve user experience.

What are @react-native-firebase/perf's main functionalities?

Trace Performance

This feature allows you to create custom traces to measure the time taken by specific parts of your application. The code sample demonstrates how to start and stop a custom trace.

import perf from '@react-native-firebase/perf';

async function traceExample() {
  const trace = await perf().newTrace('custom_trace');
  await trace.start();
  // Code you want to trace
  await trace.stop();
}

Monitor Network Requests

This feature enables monitoring of network requests to track their performance. The code sample shows how to start and stop an HTTP metric for a network request.

import perf from '@react-native-firebase/perf';

async function monitorNetworkRequest() {
  const httpMetric = perf().newHttpMetric('https://example.com', 'GET');
  await httpMetric.start();
  // Perform network request
  await httpMetric.stop();
}

Other packages similar to @react-native-firebase/perf

Keywords

FAQs

Package last updated on 20 May 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚑️ by Socket Inc