firebase.performance() can be called with no arguments to access the default
app's Performance service.
The Performance service does not work with
any 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();
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2023-09-28 UTC."],[],[],null,["- [firebase](/docs/reference/js/v8/firebase).\n- performance \nThe Performance SDK does not work in a Node.js environment.\n\nCallable\n\n- performance ( app ? : [App](/docs/reference/js/v8/firebase.app.App) ) : [Performance](/docs/reference/js/v8/firebase.performance.Performance)\n- Gets the [`Performance`](/docs/reference/js/v8/firebase.performance.Performance) service.\n\n `firebase.performance()` can be called with no arguments to access the default\n app's [`Performance`](/docs/reference/js/v8/firebase.performance.Performance) service.\n The [`Performance`](/docs/reference/js/v8/firebase.performance.Performance) service does not work with\n any other app.\n\n The Performance SDK does not work in a Node.js environment.\n\n example\n :\n\n // Get the Performance service for the default app\n const defaultPerformance = firebase.performance();\n\n\n Parameters\n -\n\n Optional app: [App](/docs/reference/js/v8/firebase.app.App) \n The app to create a performance service for. Performance Monitoring only works with\n the default app.\n If not passed, uses the default app.\n\n Returns [Performance](/docs/reference/js/v8/firebase.performance.Performance)\n\nIndex\n\nInterfaces\n\n- [Performance](/docs/reference/js/v8/firebase.performance.Performance)\n- [Trace](/docs/reference/js/v8/firebase.performance.Trace)"]]
The Performance SDK does not work in a Node.js environment.