<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>56862</bug_id>
          
          <creation_ts>2011-03-22 14:18:26 -0700</creation_ts>
          <short_desc>Add Profiling Configuration to JavaScriptCore gyp build</short_desc>
          <delta_ts>2011-03-22 14:54:31 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>New Bugs</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Other</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>55018</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Eric Seidel (no email)">eric</reporter>
          <assigned_to name="Eric Seidel (no email)">eric</assigned_to>
          <cc>abarth</cc>
    
    <cc>barraclough</cc>
    
    <cc>dglazkov</cc>
    
    <cc>mrowe</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>371633</commentid>
    <comment_count>0</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2011-03-22 14:18:26 -0700</bug_when>
    <thetext>Add Profiling Configuration to JavaScriptCore gyp build</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>371634</commentid>
    <comment_count>1</comment_count>
      <attachid>86504</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2011-03-22 14:19:34 -0700</bug_when>
    <thetext>Created attachment 86504
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>371635</commentid>
    <comment_count>2</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2011-03-22 14:20:10 -0700</bug_when>
    <thetext>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&apos;ll be happy to fix it!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>371643</commentid>
    <comment_count>3</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2011-03-22 14:29:10 -0700</bug_when>
    <thetext>Committed r81701: &lt;http://trac.webkit.org/changeset/81701&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>371645</commentid>
    <comment_count>4</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2011-03-22 14:30:53 -0700</bug_when>
    <thetext>I see support for --profiling in build-webkit (via webkitdirs.pm):
        if ($opt =~ /^--profil(e|ing)$/i) {
            splice(@ARGV, $i, 1);
            $passedConfiguration = &quot;Profiling&quot;;
            $passedConfiguration .= &quot;_Cairo_CFLite&quot; if ($isWinCairo &amp;&amp; isCygwin());
            return;
        }

But no other references in the project as far as I can tell.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>371648</commentid>
    <comment_count>5</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2011-03-22 14:32:48 -0700</bug_when>
    <thetext>This was added as part of the SFX write.  I suspect it is now vestigial:
http://trac.webkit.org/changeset/36244</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>371649</commentid>
    <comment_count>6</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2011-03-22 14:33:10 -0700</bug_when>
    <thetext>It’s not.  The differences are in the .xcconfig files.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>371656</commentid>
    <comment_count>7</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2011-03-22 14:36:32 -0700</bug_when>
    <thetext>Yes, &quot;Profiling&quot; 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&apos;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).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>371658</commentid>
    <comment_count>8</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2011-03-22 14:38:06 -0700</bug_when>
    <thetext>(In reply to comment #6)
&gt; It’s not.  The differences are in the .xcconfig files.

I&apos;ll just trust you on that one. :)  I don&apos;t see them, but that doesn&apos;t mean they&apos;re not there.

Can you confirm that I set up Profiling correctly in the GYP build?  I&apos;ve verified that the generated project.pbxproj looks the same (at least as far as this is concerned).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>371677</commentid>
    <comment_count>9</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2011-03-22 14:52:36 -0700</bug_when>
    <thetext>(In reply to comment #7)
&gt; Yes, &quot;Profiling&quot; was added by mrowe back in:
&gt; http://trac.webkit.org/changeset/36136
&gt; and was different from Release at that time.
&gt; I no longer believe it&apos;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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>371679</commentid>
    <comment_count>10</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2011-03-22 14:54:31 -0700</bug_when>
    <thetext>(In reply to comment #9)
&gt; (In reply to comment #7)
&gt; &gt; Yes, &quot;Profiling&quot; was added by mrowe back in:
&gt; &gt; http://trac.webkit.org/changeset/36136
&gt; &gt; and was different from Release at that time.
&gt; &gt; I no longer believe it&apos;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).
&gt; 
&gt; OTHER_CFLAGS = $(OTHER_CFLAGS_$(CONFIGURATION)_$(CURRENT_VARIANT));
&gt; OTHER_CFLAGS_Release_normal = $(OTHER_CFLAGS_normal_$(TARGET_GCC_VERSION));
&gt; OTHER_CFLAGS_Production_normal = $(OTHER_CFLAGS_normal_$(TARGET_GCC_VERSION));
&gt; OTHER_CFLAGS_normal_GCC_42 = -fomit-frame-pointer -funwind-tables;
&gt; OTHER_CFLAGS_normal_LLVM_GCC_42 = $(OTHER_CFLAGS_normal_GCC_42);
&gt; 
&gt; “grep” clearly shows that we DO set -fomit-frame-pointer.

Interesting.  Thank you for the information.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>86504</attachid>
            <date>2011-03-22 14:19:34 -0700</date>
            <delta_ts>2011-03-22 14:27:22 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-56862-20110322141933.patch</filename>
            <type>text/plain</type>
            <size>2111</size>
            <attacher name="Eric Seidel (no email)">eric</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogODE2OTUKZGlmZiAtLWdpdCBhL1NvdXJjZS9KYXZhU2NyaXB0
Q29yZS9DaGFuZ2VMb2cgYi9Tb3VyY2UvSmF2YVNjcmlwdENvcmUvQ2hhbmdlTG9nCmluZGV4IDhl
MDI0NjI3YjhiZmY5ZDFiYmMzZWQzNzEwOWJlYWJiZmY1MjlhMTMuLjY5MTlmZDJkYmFjM2E2YTA0
YjAwNDk2ODI1ODQ4MDJhZjMwOWQ5YWEgMTAwNjQ0Ci0tLSBhL1NvdXJjZS9KYXZhU2NyaXB0Q29y
ZS9DaGFuZ2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cmUnLAogICAgICAgXSwKKyAg
ICAgICdjb25maWd1cmF0aW9ucyc6IHsKKyAgICAgICAgJ1Byb2R1Y3Rpb24nOiB7CisgICAgICAg
ICAgJ0lOU1RBTExfUEFUSCc6ICckKEJVSUxUX1BST0RVQ1RTX0RJUiknLAorICAgICAgICB9LAor
ICAgICAgfSwKICAgICAgICdzb3VyY2VzJzogWwogICAgICAgICAnPEAoamF2YXNjcmlwdGNvcmVf
ZmlsZXMpJywKICAgICAgICAgJzxAKGphdmFzY3JpcHRjb3JlX3B1YmxpY2hlYWRlcl9maWxlcykn
LAo=
</data>
<flag name="review"
          id="78786"
          type_id="1"
          status="+"
          setter="abarth"
    />
          </attachment>
      

    </bug>

</bugzilla>