Is there a way to debug scene in the context of performance

Is there a way to somenow debug the scene in a viewport with armature in pose mode, to find out what is causing lags? What is calculating so long so the movement of bones is slow and laggy?

I have quite complex scene, and slowness was growing with time, so I bet it is my doing, but I would like to find out what is causing the problem.

Is there a way to check that?