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:
parent
873bdb3146
commit
037ee4912c
|
@ -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()) {
|
||||
|
|
Loading…
Reference in New Issue