[Qt] Add gprof.prf to build WebKit with gprof enabled
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 13 Aug 2012 12:07:36 +0000 (12:07 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 13 Aug 2012 12:07:36 +0000 (12:07 +0000)
commite21833a419a8d78c249891c383778613af59b7f3
tree25b9a9fab89fef7cf78b815347a4554cf0126d73
parentdfd5cf0f793a632fcbc6fb4690d3d80f6264e8f2
[Qt] Add gprof.prf to build WebKit with gprof enabled
https://bugs.webkit.org/show_bug.cgi?id=90283

Patch by Kwang Yul Seo <skyul@company100.net> on 2012-08-13
Reviewed by Eric Seidel.

Source/WebCore:

No behavior change, so no new tests.

* WebCore.pri:
-ffunction-sections conflicts with -pg option, so don't use
-ffunction-sections option when gprof is enabled.

Source/WebKit/qt:

* tests/MIMESniffing/MIMESniffing.pro:
Don't build MIMESniffing.cpp because MIMESniffing test links
WebKitQt statically when gprof is enabled.

Tools:

* qmake/mkspecs/features/functions.prf:
gprof does not support profiling a shared library.
To profile WebKit, applications must link QtWebKit statically.

* qmake/mkspecs/features/gprof.prf: Added.
Add -pg option to both QMAKE_CXXFLAGS and QMAKE_LFLAGS.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@125411 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/WebCore.pri
Source/WebKit/qt/ChangeLog
Source/WebKit/qt/tests/MIMESniffing/MIMESniffing.pro
Tools/ChangeLog
Tools/qmake/mkspecs/features/functions.prf
Tools/qmake/mkspecs/features/gprof.prf [new file with mode: 0644]