Open dbg-daniel-aurora opened 3 weeks ago
Hi @dbg-daniel-aurora thanks you for creating the issue and describing what's going on, I'm gonna have a look later today.
Hi @dbg-daniel-aurora yeah there's no way to do it right now I think. Which metric is it?
There are many application specific metrics that aren't surfaced through the performance marker API. One of which is average FPS of canvas throughout the lifecycle of the page as well as memory metrics.
I'm able to get the metrics in the extra's section of the metrics page, it just fails when I run comparison mode.
I can see if this also happens outside of a custom plugin, I imagine I should be able to add a custom metric via scripting and hopefully it doesn't fail in the same way. If so i imagine this would be a proper bug?
The compare plugin hasn't been build so you can add your own metrics right now, so that needs to be fixed. My main focus for the compare plugin has been performance metrics that have non normal distribution.
Let me have a look later this week and see if there's an easy way to fix it.
Sorry I didn't get around to test it. I'm away next week but will have a go after that.
Have you read the documentation?
URL
http://example.com/
What are you trying to accomplish
Trying to add custom metrics via a plugin, the end goal is to have the comparison complete and eventually display the custom metrics on the comparison page (if possible)
right now the problem is that the second comparison test fails with the following error:
ERROR: TypeError: currentMetric.getValues is not a function at ComparePlugin.processMessage (file:///usr/src/app/lib/plugins/compare/index.js:174:37)
What browser did you use?
Chrome
How to reproduce
Log output