Enable memory profiler symbol lookup.
authorGlenn Watson <glenn.watson@nokia.com>
Tue, 15 May 2012 22:14:13 +0000 (08:14 +1000)
committerQt by Nokia <qt-info@nokia.com>
Tue, 15 May 2012 22:47:40 +0000 (00:47 +0200)
Enable the profiler initialization, now that the required
API is available in qtbase.

Change-Id: I620eade732cfe2de88360515350a7f95676fca04
Reviewed-by: Martin Jones <martin.jones@nokia.com>
src/qml/qml/qqmlmemoryprofiler.cpp

index b43ac86..60d767a 100644 (file)
@@ -75,7 +75,7 @@ extern QFunctionPointer qt_linux_find_symbol_sys(const char *symbol);
 
 static bool openLibrary()
 {
-#if 0//def Q_OS_LINUX   [Disabled until qt_linux_find_symbol_sys is available in qtbase]
+#ifdef Q_OS_LINUX
     if (state == Unloaded) {
         memprofile_stats = (qmlmemprofile_stats *) qt_linux_find_symbol_sys("qmlmemprofile_stats");
         memprofile_clear = (qmlmemprofile_clear *) qt_linux_find_symbol_sys("qmlmemprofile_clear");