add better profile logging properly resolve important dependencies

Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
This commit is contained in:
Rachel Powers
2024-06-24 17:08:23 -07:00
parent ce280c2d04
commit a94a081b9c
11 changed files with 215 additions and 85 deletions

View File

@ -403,6 +403,18 @@ void Component::updateCachedData()
}
}
void Component::waitLoadMeta() {
if (!m_loaded) {
if (!m_metaVersion || !m_metaVersion->isLoaded()) {
// wait for the loaded version from meta
m_metaVersion = APPLICATION->metadataIndex()->getLoadedVersion(m_uid, m_version);
}
m_loaded = true;
updateCachedData();
}
}
QDebug operator<<(QDebug d, const Component& comp) {
d << "Component(" << comp.m_uid << " : " << comp.m_cachedVersion << ")";
return d;