QQmlMemoryScope::QQmlMemoryScope(const char *string) : pushed(false) { if (openLibrary() && memprofile_is_enabled()) { memprofile_push_location(string, 0); pushed = true; } }
void QQmlMemoryScope::init(const char *string) { if (memprofile_is_enabled()) { memprofile_push_location(string, 0); pushed = true; } }
QQmlMemoryScope::QQmlMemoryScope(const QUrl &url) : pushed(false) { if (openLibrary() && memprofile_is_enabled()) { memprofile_push_location(url.path().toUtf8().constData(), 0); pushed = true; } }