The Performance SDK does not work in a Node.js environment.

Callable

  • performance(app?: App):Performance
  • Gets thePerformance service.

    firebase.performance() can be called with no arguments to access the defaultapp'sPerformance service.ThePerformance service does not work withany other app.

    The Performance SDK does not work in a Node.js environment.

    example
    // Get the Performance service for the default appconst defaultPerformance = firebase.performance();

    Parameters

    • Optional app:App

      The app to create a performance service for. Performance Monitoring only works withthe default app.If not passed, uses the default app.

    ReturnsPerformance

Index

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2023-09-28 UTC.