Testing Shader Performance

I was wondering how to test shader performance in RetroArch. Is there a way to tell how much frame time a shader is taking up on average?

there is an image viewer core and there are performance counters that you can enable in rgui

Thanks!