UNPKG

veritatisdoloremque

Version:
25 lines (14 loc) 708 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@firebase/performance-types](./performance-types.md) &gt; [PerformanceTrace](./performance-types.performancetrace.md) &gt; [getMetric](./performance-types.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