RESOLVED FIXED 56862
Add Profiling Configuration to JavaScriptCore gyp build
https://bugs.webkit.org/show_bug.cgi?id=56862
Summary Add Profiling Configuration to JavaScriptCore gyp build
Eric Seidel (no email)
Reported 2011-03-22 14:18:26 PDT
Add Profiling Configuration to JavaScriptCore gyp build
Attachments
Patch (2.06 KB, patch)
2011-03-22 14:19 PDT, Eric Seidel (no email)
abarth: review+
Eric Seidel (no email)
Comment 1 2011-03-22 14:19:34 PDT
Eric Seidel (no email)
Comment 2 2011-03-22 14:20:10 PDT
If there is a difference between Release and Profiling (other than name) and I failed to correctly replicate that difference in the gyp build, please let me know and I'll be happy to fix it!
Eric Seidel (no email)
Comment 3 2011-03-22 14:29:10 PDT
Eric Seidel (no email)
Comment 4 2011-03-22 14:30:53 PDT
I see support for --profiling in build-webkit (via webkitdirs.pm): if ($opt =~ /^--profil(e|ing)$/i) { splice(@ARGV, $i, 1); $passedConfiguration = "Profiling"; $passedConfiguration .= "_Cairo_CFLite" if ($isWinCairo && isCygwin()); return; } But no other references in the project as far as I can tell.
Eric Seidel (no email)
Comment 5 2011-03-22 14:32:48 PDT
This was added as part of the SFX write. I suspect it is now vestigial: http://trac.webkit.org/changeset/36244
Mark Rowe (bdash)
Comment 6 2011-03-22 14:33:10 PDT
It’s not. The differences are in the .xcconfig files.
Eric Seidel (no email)
Comment 7 2011-03-22 14:36:32 PDT
Yes, "Profiling" was added by mrowe back in: http://trac.webkit.org/changeset/36136 and was different from Release at that time. I no longer believe it's different since we no longer explicitly set -fomit-frame-pointer in any configuration that I can tell. (at least not via the pbxproj file).
Eric Seidel (no email)
Comment 8 2011-03-22 14:38:06 PDT
(In reply to comment #6) > It’s not. The differences are in the .xcconfig files. I'll just trust you on that one. :) I don't see them, but that doesn't mean they're not there. Can you confirm that I set up Profiling correctly in the GYP build? I've verified that the generated project.pbxproj looks the same (at least as far as this is concerned).
Mark Rowe (bdash)
Comment 9 2011-03-22 14:52:36 PDT
(In reply to comment #7) > Yes, "Profiling" was added by mrowe back in: > http://trac.webkit.org/changeset/36136 > and was different from Release at that time. > I no longer believe it's different since we no longer explicitly set -fomit-frame-pointer in any configuration that I can tell. (at least not via the pbxproj file). OTHER_CFLAGS = $(OTHER_CFLAGS_$(CONFIGURATION)_$(CURRENT_VARIANT)); OTHER_CFLAGS_Release_normal = $(OTHER_CFLAGS_normal_$(TARGET_GCC_VERSION)); OTHER_CFLAGS_Production_normal = $(OTHER_CFLAGS_normal_$(TARGET_GCC_VERSION)); OTHER_CFLAGS_normal_GCC_42 = -fomit-frame-pointer -funwind-tables; OTHER_CFLAGS_normal_LLVM_GCC_42 = $(OTHER_CFLAGS_normal_GCC_42); “grep” clearly shows that we DO set -fomit-frame-pointer.
Eric Seidel (no email)
Comment 10 2011-03-22 14:54:31 PDT
(In reply to comment #9) > (In reply to comment #7) > > Yes, "Profiling" was added by mrowe back in: > > http://trac.webkit.org/changeset/36136 > > and was different from Release at that time. > > I no longer believe it's different since we no longer explicitly set -fomit-frame-pointer in any configuration that I can tell. (at least not via the pbxproj file). > > OTHER_CFLAGS = $(OTHER_CFLAGS_$(CONFIGURATION)_$(CURRENT_VARIANT)); > OTHER_CFLAGS_Release_normal = $(OTHER_CFLAGS_normal_$(TARGET_GCC_VERSION)); > OTHER_CFLAGS_Production_normal = $(OTHER_CFLAGS_normal_$(TARGET_GCC_VERSION)); > OTHER_CFLAGS_normal_GCC_42 = -fomit-frame-pointer -funwind-tables; > OTHER_CFLAGS_normal_LLVM_GCC_42 = $(OTHER_CFLAGS_normal_GCC_42); > > “grep” clearly shows that we DO set -fomit-frame-pointer. Interesting. Thank you for the information.
Note You need to log in before you can comment on or make changes to this bug.