sg: Print total time spent on pipeline setup when info is enabled

Task-number: QTBUG-103802
Change-Id: I8a32fe234c60df605f4d0fbd22183fe3c172a8b2
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
This commit is contained in:
Laszlo Agocs 2022-06-10 13:01:43 +02:00
parent 873bdb3146
commit 037ee4912c
1 changed files with 2 additions and 0 deletions

View File

@ -1104,6 +1104,8 @@ void QSGRhiSupport::destroyRhi(QRhi *rhi)
return;
if (!rhi->isDeviceLost()) {
qCDebug(QSG_LOG_INFO, "Total time spent on pipeline creation during the lifetime of the QRhi was %lld ms",
rhi->statistics().totalPipelineCreationTime);
if (!m_pipelineCacheSave.isEmpty()) {
QLockFile lock(pipelineCacheLockFileName(m_pipelineCacheSave));
if (lock.lock()) {