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

@firebase/performance-compat

Package Overview
Dependencies
Maintainers
4
Versions
1093
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@firebase/performance-compat

The compatibility package of Firebase Performance

  • 0.2.11
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.8M
increased by7.73%
Maintainers
4
Weekly downloads
 
Created

What is @firebase/performance-compat?

The @firebase/performance-compat package is a compatibility wrapper around the @firebase/performance package, designed to work with the Firebase Performance Monitoring service. This service helps developers gain insight into the performance characteristics of their web and mobile applications by automatically collecting performance metrics. The compat version ensures compatibility with older Firebase codebases that use the Firebase namespace (firebase.*) rather than modular imports.

What are @firebase/performance-compat's main functionalities?

Automatic Web Performance Monitoring

Automatically collects performance metrics of web applications, such as network request speeds and page load details, without requiring manual instrumentation.

import 'firebase/performance-compat';

// Initialize Firebase Performance Monitoring
const performance = firebase.performance();

Manual Custom Tracing

Allows developers to manually define custom traces to measure performance of specific parts of their application code, providing flexibility in performance analysis.

import 'firebase/performance-compat';

// Initialize Firebase Performance Monitoring
const performance = firebase.performance();

// Start a custom trace
const trace = performance.trace('customTraceName');
trace.start();

// Stop the trace
trace.stop();

Other packages similar to @firebase/performance-compat

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