<?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>120110</bug_id>
          
          <creation_ts>2013-08-21 08:21:15 -0700</creation_ts>
          <short_desc>[GTK] Skip FontConfig initialization in WebKitTestRunner if requested</short_desc>
          <delta_ts>2014-01-14 11:46:00 -0800</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>Unspecified</rep_platform>
          <op_sys>Unspecified</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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Zan Dobersek">zan</reporter>
          <assigned_to name="Zan Dobersek">zan</assigned_to>
          <cc>mrobinson</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>919415</commentid>
    <comment_count>0</comment_count>
    <who name="Zan Dobersek">zan</who>
    <bug_when>2013-08-21 08:21:15 -0700</bug_when>
    <thetext>[GTK] Skip FontConfig initialization in WebKitTestRunner if requested</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>919416</commentid>
    <comment_count>1</comment_count>
      <attachid>209267</attachid>
    <who name="Zan Dobersek">zan</who>
    <bug_when>2013-08-21 08:23:31 -0700</bug_when>
    <thetext>Created attachment 209267
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>919418</commentid>
    <comment_count>2</comment_count>
    <who name="Zan Dobersek">zan</who>
    <bug_when>2013-08-21 08:26:15 -0700</bug_when>
    <thetext>As described in the change log, FontConfig initialization is pretty heavy computation-wise, and is as such unnecessarily shown as a bottleneck when reviewing the profile. This skews the whole profile and obstructs real problems as the FontConfig setup is not really necessary when not running layout tests.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>919419</commentid>
    <comment_count>3</comment_count>
    <who name="Martin Robinson">mrobinson</who>
    <bug_when>2013-08-21 08:28:55 -0700</bug_when>
    <thetext>It is necessary to produce appropriate test results though, right?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>919455</commentid>
    <comment_count>4</comment_count>
    <who name="Zan Dobersek">zan</who>
    <bug_when>2013-08-21 09:17:31 -0700</bug_when>
    <thetext>When running layout tests, yes.

This shouldn&apos;t apply to the performace tests (i.e. when running run-perf-tests and using a profiler), at least at the moment there are no tests testing the performance of anything that strictly relies on specific fonts being present.

I&apos;ll think this through before pushing forward - in worst case, the FontConfig functions consuming substantial amount of time could be simply ignored when reviewing the profiles. Unfortunately the perf profiler doesn&apos;t provide any obvious mechanisms to ignore specific symbols at either record- or report-time.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>919457</commentid>
    <comment_count>5</comment_count>
      <attachid>209267</attachid>
    <who name="Zan Dobersek">zan</who>
    <bug_when>2013-08-21 09:19:11 -0700</bug_when>
    <thetext>Comment on attachment 209267
Patch

I&apos;ll spin off the typo fix into a separate patch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>919465</commentid>
    <comment_count>6</comment_count>
    <who name="Martin Robinson">mrobinson</who>
    <bug_when>2013-08-21 09:29:00 -0700</bug_when>
    <thetext>(In reply to comment #4) 
&gt; This shouldn&apos;t apply to the performace tests (i.e. when running run-perf-tests and using a profiler), at least at the moment there are no tests testing the performance of anything that strictly relies on specific fonts being present.

I see. You make a good point. As long as it does not cause tests to start failing, I have no objection.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>967686</commentid>
    <comment_count>7</comment_count>
      <attachid>221110</attachid>
    <who name="Zan Dobersek">zan</who>
    <bug_when>2014-01-13 23:59:16 -0800</bug_when>
    <thetext>Created attachment 221110
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>967837</commentid>
    <comment_count>8</comment_count>
      <attachid>221110</attachid>
    <who name="Martin Robinson">mrobinson</who>
    <bug_when>2014-01-14 08:05:54 -0800</bug_when>
    <thetext>Comment on attachment 221110
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=221110&amp;action=review

&gt; Tools/WebKitTestRunner/InjectedBundle/gtk/ActivateFontsGtk.cpp:87
&gt; +    if (g_getenv(&quot;WKTR_SKIP_FONTCONFIG_INITIALIZATION&quot;))
&gt; +        return;
&gt; +

A &quot;WEBKIT&quot; prefix probably makes more sense here, since that&apos;s the one we traditionally use.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>967866</commentid>
    <comment_count>9</comment_count>
      <attachid>221110</attachid>
    <who name="Zan Dobersek">zan</who>
    <bug_when>2014-01-14 09:34:36 -0800</bug_when>
    <thetext>Comment on attachment 221110
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=221110&amp;action=review

&gt;&gt; Tools/WebKitTestRunner/InjectedBundle/gtk/ActivateFontsGtk.cpp:87
&gt;&gt; +
&gt; 
&gt; A &quot;WEBKIT&quot; prefix probably makes more sense here, since that&apos;s the one we traditionally use.

I&apos;d then change the variable name to &apos;WEBKIT_SKIP_WKTR_FONTCONFIG_INITIALIZATION&apos;. Sounds OK?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>967939</commentid>
    <comment_count>10</comment_count>
    <who name="Martin Robinson">mrobinson</who>
    <bug_when>2014-01-14 11:19:12 -0800</bug_when>
    <thetext>(In reply to comment #9)
&gt; (From update of attachment 221110 [details])
&gt; View in context: https://bugs.webkit.org/attachment.cgi?id=221110&amp;action=review
&gt; 
&gt; &gt;&gt; Tools/WebKitTestRunner/InjectedBundle/gtk/ActivateFontsGtk.cpp:87
&gt; &gt;&gt; +
&gt; &gt; 
&gt; &gt; A &quot;WEBKIT&quot; prefix probably makes more sense here, since that&apos;s the one we traditionally use.
&gt; 
&gt; I&apos;d then change the variable name to &apos;WEBKIT_SKIP_WKTR_FONTCONFIG_INITIALIZATION&apos;. Sounds OK?

I&apos;m not a big fan unnecessary abbreviation, so I prefer WEBKIT_SKIP_WEBKITTESTRUNNER_FONTCONFIG_INITIALIZATION.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>967958</commentid>
    <comment_count>11</comment_count>
    <who name="Zan Dobersek">zan</who>
    <bug_when>2014-01-14 11:46:00 -0800</bug_when>
    <thetext>Committed r161990: &lt;http://trac.webkit.org/changeset/161990&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>209267</attachid>
            <date>2013-08-21 08:23:31 -0700</date>
            <delta_ts>2014-01-13 23:59:10 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-120110-20130821082330.patch</filename>
            <type>text/plain</type>
            <size>1962</size>
            <attacher name="Zan Dobersek">zan</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMTU0MzgwCmRpZmYgLS1naXQgYS9Ub29scy9DaGFuZ2VMb2cg
Yi9Ub29scy9DaGFuZ2VMb2cKaW5kZXggMjM5NjJiOTMwMTBjNmI5NTIzMDZjNjkwZWY5OTJmZTZj
ODNiMDczMC4uODEwYjViZTRmNjY5ODkwZTk5ZWFjMjgwNThkNGY1NzM4MDhjYTRhNCAxMDA2NDQK
LS0tIGEvVG9vbHMvQ2hhbmdlTG9nCisrKyBiL1Rvb2xzL0NoYW5nZUxvZwpAQCAtMSwzICsxLDE4
IEBACisyMDEzLTA4LTIxICBaYW4gRG9iZXJzZWsgIDx6ZG9iZXJzZWtAaWdhbGlhLmNvbT4KKwor
ICAgICAgICA8aHR0cHM6Ly93ZWJraXQub3JnL2IvMTIwMTEwPiBbR1RLXSBTa2lwIEZvbnRDb25m
aWcgaW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          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>221110</attachid>
            <date>2014-01-13 23:59:16 -0800</date>
            <delta_ts>2014-01-14 09:34:36 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-120110-20140114085914.patch</filename>
            <type>text/plain</type>
            <size>1548</size>
            <attacher name="Zan Dobersek">zan</attacher>
            
              <data encoding="base64">SW5kZXg6IFRvb2xzL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBUb29scy9DaGFuZ2VMb2cJKHJl
dmlzaW9uIDE2MTk1MikKKysrIFRvb2xzL0NoYW5nZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwz
ICsxLDE4IEBACisyMDE0LTAxLTEzICBaYW4gRG9iZXJzZWsgIDx6ZG9iZXJzZWtAaWdhbGlhLmNv
bT4KKworICAgICAgICBbR1RLXSBTa2lwIEZvbnRDb25maWcgaW5pdGlhbGl6YXRpb24gaW4gV2Vi
S2l0VGVzdFJ1bm5lciBpZiByZXF1ZXN0ZWQKKyAgICAgICAgaHR0cHM6Ly9idWdzLndlYmtpdC5v
cmcvc2hvd19idWcuY2dpP2lkPTEyMDExMAorCisgICAgICAgIFJldmlld2VkIGJ5IE5PQk9EWSAo
T09QUyEpLgorCisgICAgICAgIFNraXAgdGhlIEZvbnRDb25maWcgc2V0dGluZ3MgaW5pdGlhbGl6
YXRpb24gaW4gV2ViS2l0VGVzdFJ1bm5lciBpZiB0aGUKKyAgICAgICAgV0tUUl9TS0lQX0ZPTlRD
T05GSUdfSU5JVElBTElaQVRJT04gZW52aXJvbm1lbnQgdmFyaWFibGUgaXMgc2V0LiBUaGlzCisg
ICAgICAgIGlzIHVzZWZ1bCB3aGVuIHByb2ZpbGluZyB0aGUgV2ViS2l0VGVzdFJ1bm5lciBleGVj
dXRpb24sIHdoZXJlIGF0IHRoZSBzdGFydHV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3QgcmVz
dWx0ZWQgYSBmb250IGJlaW5nIGFkZGVkIG9yIHJlbW92ZWQgdmlhIHRoZSBAZm9udC1mYWNlIHJ1
bGUsIHRoZW4K
</data>
<flag name="review"
          id="244966"
          type_id="1"
          status="+"
          setter="mrobinson"
    />
          </attachment>
      

    </bug>

</bugzilla>