How to measure C++ based Desktop application UI elements performance

Have anyone any experience in performance testing of UI elements of desktop applications? Iā€™m looking for any tools, methodologies and etc. Market usually looks on performance aspects of algorithms, dbs, services and etc, but not UI.