FPS counter for QML application
QML_SHOW_FRAMERATE variable can be used for performance information. It prints the time spent each frame to the console.
DEFINE_BOOL_CONFIG_OPTION(frameRateDebug, QML_SHOW_FRAMERATE)
see src/declarative/util/qdeclarativeview.cpp
using:
...
if (frameRateDebug())
{
// do something
}
Also this variable can be set in Qt Creator (see the “Run Environment” subsection in the project’s “Run Settings” tab).