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