From: Glenn Watson Date: Tue, 15 May 2012 22:14:13 +0000 (+1000) Subject: Enable memory profiler symbol lookup. X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=d194e0062b410c114f363567c006da3d762ac9b5;p=konrad%2Fqtdeclarative.git Enable memory profiler symbol lookup. Enable the profiler initialization, now that the required API is available in qtbase. Change-Id: I620eade732cfe2de88360515350a7f95676fca04 Reviewed-by: Martin Jones --- diff --git a/src/qml/qml/qqmlmemoryprofiler.cpp b/src/qml/qml/qqmlmemoryprofiler.cpp index b43ac86..60d767a 100644 --- a/src/qml/qml/qqmlmemoryprofiler.cpp +++ b/src/qml/qml/qqmlmemoryprofiler.cpp @@ -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");