Socket
Socket
Sign inDemoInstall

@firebase/performance-compat

Package Overview
Dependencies
10
Maintainers
4
Versions
943
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @firebase/performance-compat

The compatibility package of Firebase Performance


Version published
Weekly downloads
1.2M
decreased by-9.98%
Maintainers
4
Install size
2.61 MB
Created
Weekly downloads
 

Package description

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

Readme

Source

@firebase/performance-compat

This is the compat package that recreates the v8 APIs.

This package is not intended for direct usage, and should only be used via the officially supported firebase package.

FAQs

Last updated on 28 Mar 2024

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc