---
url: https://lit-ui-router.dev/reference/ui-router-devtools/performance/functions/reportToPerformance.md
---
[ui-router-devtools](../../index.md) / [performance](../index.md) / reportToPerformance

# Function: reportToPerformance()

```ts
function reportToPerformance(source): () => void;
```

Defined in: [ui-router-devtools/src/performance.ts:124](https://github.com/simshanith/lit-ui-router/blob/31f3b09934f0d5fb680137a7c51356c2acec408d/packages/ui-router-devtools/src/performance.ts#L124)

Writes settled transitions as User Timing track entries for the Performance panel; with a recorder it keeps reporting until the returned function is called.

## Parameters

| Parameter | Type |
| ------ | ------ |
| `source` | | readonly [`RouterEvent`](../../index/type-aliases/RouterEvent.md)\[] | [`Recorder`](../../index/interfaces/Recorder.md) |

## Returns

() => `void`
