quodolores
Version:
Monorepo for the Firebase JavaScript SDK
25 lines (14 loc) • 684 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@firebase/performance](./performance.md) > [PerformanceTrace](./performance.performancetrace.md) > [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