Custom timing
In general, when using performance.mark or performance.measure as part of our User Timing, you won't need to use the API calls below to collect timing. But in some cases, timing information might be exposed in other ways. In those cases, this API will be an outcome to still collect that information with RUMvision.
Submit as a string
Add/report a custom timing:
rumv('timing', 'browser-work', 'mark' );
Submit as an object
Submit a predefined moment:
rumv('timing', {
name: 'server-work',
startTime: performance.now(),
duration: 1000
}, 'server' );