Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@firebase/performance

Package Overview
Dependencies
Maintainers
4
Versions
2746
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@firebase/performance

Firebase performance for web

  • 0.6.11
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2M
decreased by-1.44%
Maintainers
4
Weekly downloads
 
Created

What is @firebase/performance?

The @firebase/performance package is part of the Firebase suite, designed to help developers collect and analyze performance metrics of their web and mobile applications. It provides automatic and custom tracing capabilities that allow developers to measure the performance of their applications in real-time.

What are @firebase/performance's main functionalities?

Automatic Tracing

Automatic tracing automatically collects performance data about your app's most common tasks. This feature requires no additional code after initialization and helps in monitoring performance out-of-the-box.

import { getPerformance } from 'firebase/performance';

const perf = getPerformance();
// Automatic traces are started and stopped by Firebase itself.

Custom Tracing

Custom tracing allows developers to manually define specific parts of their application to measure performance metrics. This is useful for measuring performance of custom operations not automatically traced by Firebase.

import { getPerformance, trace } from 'firebase/performance';

const perf = getPerformance();
const myTrace = trace(perf, 'customTraceName');
myTrace.start();
// Code to trace
myTrace.stop();

Network Request Performance

This feature automatically captures performance metrics of network requests made by the application. It helps in understanding the time taken by the app to make and complete requests, and to optimize them if necessary.

import { getPerformance } from 'firebase/performance';

const perf = getPerformance();
// Network performance data is automatically collected and available in the Firebase console.

Other packages similar to @firebase/performance

FAQs

Package last updated on 14 Nov 2024

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