UNPKG

quodolores

Version:

Monorepo for the Firebase JavaScript SDK

25 lines (14 loc) 684 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@firebase/performance](./performance.md) &gt; [PerformanceTrace](./performance.performancetrace.md) &gt; [getMetric](./performance.performancetrace.getmetric.md) ## PerformanceTrace.getMetric() method Returns the value of the custom metric by that name. If a custom metric with that name does not exist will return zero. <b>Signature:</b> ```typescript getMetric(metricName: string): number; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | metricName | string | Name of the custom metric. | <b>Returns:</b> number