Using User Timing
How to use User Timing to create custom metrics in SpeedCurve RUM and Synthetic.
[Supported in SpeedCurve RUM and Synthetic]
What is User Timing?
The User Timing specification provides an API which can be used to add custom timing metrics to your application. This is done via two main functions: performance.mark
and performance.measure
.
User Timing in Action
Learn more about User Timing metrics, including several great examples and a deeper explanation of how it works here
Adding custom timing metrics with User Timing
You can add a custom timing metric to SpeedCurve using User Timing.
Step 1
![](https://files.readme.io/e527011-add_metric_types.gif)
Step 2
Select 'User Timing API' and click 'Next'
![](https://files.readme.io/0bace40-user_timing1.gif)
Step 3
- Add the name of the metric you'd like to see in your charts and dashboards
- Add the name of the User Timing entry you want to collect
![](https://files.readme.io/8a4b887-user_timing2.gif)
Step 4
Once complete, you will see your metric listed on the custom data page.
![](https://files.readme.io/18ccc62-usertiming3.gif)
Updated 9 months ago