<?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>51479</bug_id>
          
          <creation_ts>2010-12-22 10:10:49 -0800</creation_ts>
          <short_desc>Web Inspector: chromium: inspector&apos;s tests are quite slow especially at windows(Debug).</short_desc>
          <delta_ts>2011-01-04 11:16:54 -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>Web Inspector (Deprecated)</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</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="Ilya Tikhonovsky">loislo</reporter>
          <assigned_to name="Ilya Tikhonovsky">loislo</assigned_to>
          <cc>apavlov</cc>
    
    <cc>bweinstein</cc>
    
    <cc>commit-queue</cc>
    
    <cc>eric</cc>
    
    <cc>joepeck</cc>
    
    <cc>keishi</cc>
    
    <cc>loislo</cc>
    
    <cc>pfeldman</cc>
    
    <cc>pmuellr</cc>
    
    <cc>rik</cc>
    
    <cc>timothy</cc>
    
    <cc>tkent</cc>
    
    <cc>tony</cc>
    
    <cc>yurys</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>325541</commentid>
    <comment_count>0</comment_count>
    <who name="Ilya Tikhonovsky">loislo</who>
    <bug_when>2010-12-22 10:10:49 -0800</bug_when>
    <thetext>almost all inspector&apos;s tests become flaky on chromium Win(dbg) after switching to DRT.
I just discovered that we have two additional GC runs per each WebViewHost.
Test_shell version had no such calls.
These gc runs eat 15% of cpu time.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>325545</commentid>
    <comment_count>1</comment_count>
      <attachid>77228</attachid>
    <who name="Ilya Tikhonovsky">loislo</who>
    <bug_when>2010-12-22 10:13:59 -0800</bug_when>
    <thetext>Created attachment 77228
[patch] initial version</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>325550</commentid>
    <comment_count>2</comment_count>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2010-12-22 10:23:15 -0800</bug_when>
    <thetext>This isn&apos;t my territory, but a bit of background can be found on:
http://trac.webkit.org/changeset/71928

&gt; In test_shell, when we close a window, we first load about:blank
&gt; and run GC to fire the destruction logic of the page.  In test_shell,
&gt; this happens in ~TestShell.  In DRT, we manage virtual windows as
&gt; WebViewHosts, so we need to replicate this logic in ~WebViewHost.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>325608</commentid>
    <comment_count>3</comment_count>
    <who name="Ilya Tikhonovsky">loislo</who>
    <bug_when>2010-12-22 11:43:29 -0800</bug_when>
    <thetext>(In reply to comment #2)
&gt; This isn&apos;t my territory, but a bit of background can be found on:
&gt; http://trac.webkit.org/changeset/71928
&gt; 
&gt; &gt; In test_shell, when we close a window, we first load about:blank
&gt; &gt; and run GC to fire the destruction logic of the page.  In test_shell,
&gt; &gt; this happens in ~TestShell.  In DRT, we manage virtual windows as
&gt; &gt; WebViewHosts, so we need to replicate this logic in ~WebViewHost.


I may be wrong but historically there was only one TestShell object per test_shell process.
I added another instance of TestShell object for the Inspector&apos;s window when I did inspector&apos;s tests support in test_shell.

I think that is the reason why we had a gc run for each inspector tests in test_shell. 

Right now in chromium version of DRT we have double gc run for each layout test and four gc runs for each inspector test.
I think this is overkill.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>325971</commentid>
    <comment_count>4</comment_count>
      <attachid>77228</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2010-12-23 01:12:56 -0800</bug_when>
    <thetext>Comment on attachment 77228
[patch] initial version

Do we know when these were added or why?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>325974</commentid>
    <comment_count>5</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2010-12-23 01:14:46 -0800</bug_when>
    <thetext>Unfortunately Tony is on vacation, otherwise I would really like to see his commentary here.

I guess we can try this for now and roll this out if he comes back and can explain why it&apos;s needed.

We have general timeout/crash trouble with inspector tests.  See my mail from an hour ago to webkit-dev about crashy inspector tests.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>325975</commentid>
    <comment_count>6</comment_count>
      <attachid>77228</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2010-12-23 01:15:14 -0800</bug_when>
    <thetext>Comment on attachment 77228
[patch] initial version

rs=me.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>325980</commentid>
    <comment_count>7</comment_count>
      <attachid>77228</attachid>
    <who name="Ilya Tikhonovsky">loislo</who>
    <bug_when>2010-12-23 01:20:55 -0800</bug_when>
    <thetext>Comment on attachment 77228
[patch] initial version

Clearing flags on attachment: 77228

Committed r74544: &lt;http://trac.webkit.org/changeset/74544&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>325981</commentid>
    <comment_count>8</comment_count>
    <who name="Ilya Tikhonovsky">loislo</who>
    <bug_when>2010-12-23 01:21:05 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>329097</commentid>
    <comment_count>9</comment_count>
    <who name="Tony Chang">tony</who>
    <bug_when>2011-01-04 11:16:54 -0800</bug_when>
    <thetext>(In reply to comment #3)
&gt; (In reply to comment #2)
&gt; &gt; This isn&apos;t my territory, but a bit of background can be found on:
&gt; &gt; http://trac.webkit.org/changeset/71928
&gt; &gt; 
&gt; &gt; &gt; In test_shell, when we close a window, we first load about:blank
&gt; &gt; &gt; and run GC to fire the destruction logic of the page.  In test_shell,
&gt; &gt; &gt; this happens in ~TestShell.  In DRT, we manage virtual windows as
&gt; &gt; &gt; WebViewHosts, so we need to replicate this logic in ~WebViewHost.
&gt; 
&gt; I may be wrong but historically there was only one TestShell object per test_shell process.
&gt; I added another instance of TestShell object for the Inspector&apos;s window when I did inspector&apos;s tests support in test_shell.

In test_shell, there&apos;s one TestShell per window.  In DRT, there&apos;s only one TestShell instance, so I moved the gc calls into ~WebViewHost to mirror the usage in test_shell.

I think there might have been some plugin tests that depended on this behavior, but if there were no test failures after this change, seems fine to me.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>77228</attachid>
            <date>2010-12-22 10:13:59 -0800</date>
            <delta_ts>2010-12-23 01:20:55 -0800</delta_ts>
            <desc>[patch] initial version</desc>
            <filename>patch</filename>
            <type>text/plain</type>
            <size>1435</size>
            <attacher name="Ilya Tikhonovsky">loislo</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1Rvb2xzL0NoYW5nZUxvZyBiL1Rvb2xzL0NoYW5nZUxvZwppbmRleCBhOGUw
OTFlLi42ZjlhYWVjIDEwMDY0NAotLS0gYS9Ub29scy9DaGFuZ2VMb2cKKysrIGIvVG9vbHMvQ2hh
bmdlTG9nCkBAIC0xLDUgKzEsMjEgQEAKIDIwMTAtMTItMjIgIElseWEgVGlraG9ub3Zza3kgIDxs
b2lzbG9AY2hyb21pdW0ub3JnPgogCisgICAgICAgIFJldmlld2VkIGJ5IE5PQk9EWSAoT09QUyEp
LgorCisgICAgICAgIFdlYiBJbnNwZWN0b3I6IGNocm9taXVtOiBpbnNwZWN0b3IncyB0ZXN0cyBh
cmUgcXVpdGUgc2xvdyBlc3BlY2lhbGx5IGF0IHdpbmRvd3MoRGVidWcpLgorCisgICAgICAgIEFs
bW9zdCBhbGwgaW5zcGVjdG9yJ3MgdGVzdHMgYmVjb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