<?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>88003</bug_id>
          
          <creation_ts>2012-05-31 12:21:57 -0700</creation_ts>
          <short_desc>Chromium Console.time() and timeEnd() Should Support Async Traces</short_desc>
          <delta_ts>2012-06-04 16:25:06 -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>WebCore JavaScript</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</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>P4</priority>
          <bug_severity>Minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Kevin Greer">kgr</reporter>
          <assigned_to name="Kevin Greer">kgr</assigned_to>
          <cc>danakj</cc>
    
    <cc>jamesr</cc>
    
    <cc>jbates</cc>
    
    <cc>kgr</cc>
    
    <cc>nduca</cc>
    
    <cc>pfeldman</cc>
    
    <cc>rbyers</cc>
    
    <cc>rniwa</cc>
    
    <cc>webkit.review.bot</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>638632</commentid>
    <comment_count>0</comment_count>
    <who name="Kevin Greer">kgr</who>
    <bug_when>2012-05-31 12:21:57 -0700</bug_when>
    <thetext>When the Console.time/timerEnd() functions are called on the chromium platform, calls to chrome&apos;s TRACE_EVENT methods are called.
The versions being called only supported nested synchronous traces and should be switched to the versions that also support asynchronous un-nested traces.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>640061</commentid>
    <comment_count>1</comment_count>
      <attachid>145456</attachid>
    <who name="Kevin Greer">kgr</who>
    <bug_when>2012-06-02 10:46:26 -0700</bug_when>
    <thetext>Created attachment 145456
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>640752</commentid>
    <comment_count>2</comment_count>
      <attachid>145456</attachid>
    <who name="Nat Duca">nduca</who>
    <bug_when>2012-06-04 12:33:41 -0700</bug_when>
    <thetext>Comment on attachment 145456
Patch

LGTM. +pfeldman for review.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>640772</commentid>
    <comment_count>3</comment_count>
      <attachid>145456</attachid>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2012-06-04 12:52:22 -0700</bug_when>
    <thetext>Comment on attachment 145456
Patch

Clearing flags on attachment: 145456

Committed r119418: &lt;http://trac.webkit.org/changeset/119418&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>640773</commentid>
    <comment_count>4</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2012-06-04 12:52:26 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>640923</commentid>
    <comment_count>5</comment_count>
    <who name="Dana Jansens">danakj</who>
    <bug_when>2012-06-04 15:48:32 -0700</bug_when>
    <thetext>This seems to have caused a failure in the browser_tests test GpuFeatureTest.RafNoDamage:

[12655:-1597528768:0604/134340:2263335561903:ERROR:trace_event_analyzer.cc(827)] Not enough events: 0
../../chrome/test/gpu/gpu_feature_browsertest.cc:425: Failure
Value of: trace_analyzer::GetRateStats(events, &amp;stats, &amp;stats_options)
  Actual: false
Expected: true
[12655:-1597528768:0604/134340:2263335777689:INFO:gpu_feature_browsertest.cc(427)] Number of RAFs: 0 Mean: 6.36069e-307 Min: -1.99068 Max: 2.56952e-256 StdDev: 2.57917e-256
../../chrome/test/gpu/gpu_feature_browsertest.cc:435: Failure
Expected: (stats.mean_us) &gt; (15000.0), actual: 6.36069e-307 vs 15000


I bisected locally to find this change being the cause.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>640940</commentid>
    <comment_count>6</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2012-06-04 16:06:46 -0700</bug_when>
    <thetext>Could you look into this issue? I&apos;m going to roll out the patch I don&apos;t hear back from you in the next half an hour or so.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>640952</commentid>
    <comment_count>7</comment_count>
    <who name="James Robinson">jamesr</who>
    <bug_when>2012-06-04 16:13:59 -0700</bug_when>
    <thetext>Looks like the chromium-side test should be updated to look for async trace events instead of normal matched ones.

Please don&apos;t revert, this patch is fine.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>640956</commentid>
    <comment_count>8</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2012-06-04 16:15:44 -0700</bug_when>
    <thetext>(In reply to comment #7)
&gt; Looks like the chromium-side test should be updated to look for async trace events instead of normal matched ones.
&gt; 
&gt; Please don&apos;t revert, this patch is fine.

Okay. Could you make that change? I have no idea what this test is testing, and don&apos;t know how to do that.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>640963</commentid>
    <comment_count>9</comment_count>
    <who name="John Bates">jbates</who>
    <bug_when>2012-06-04 16:21:58 -0700</bug_when>
    <thetext>Fix on the way:
https://code.google.com/p/chromium/issues/detail?id=131097</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>640965</commentid>
    <comment_count>10</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2012-06-04 16:25:06 -0700</bug_when>
    <thetext>(In reply to comment #9)
&gt; Fix on the way:
&gt; https://code.google.com/p/chromium/issues/detail?id=131097

Great! Thank you.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>145456</attachid>
            <date>2012-06-02 10:46:26 -0700</date>
            <delta_ts>2012-06-04 12:52:22 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-88003-20120602134625.patch</filename>
            <type>text/plain</type>
            <size>1401</size>
            <attacher name="Kevin Greer">kgr</attacher>
            
              <data encoding="base64">SW5kZXg6IENoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBDaGFuZ2VMb2cJKHJldmlzaW9uIDExOTMy
MykKKysrIENoYW5nZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwzICsxLDEyIEBACisyMDEyLTA2
LTAyICBLZXZpbiBHcmVlciAgPGtnckBjaHJvbWl1bS5vcmc+CisKKyAgICAgICAgW2Nocm9taXVt
XSBJc3N1ZSBhc3luYyBldmVudHMgZm9yIGNvbnNvbGUudGltZS90aW1lRW5kCisgICAgICAgIGh0
dHBzOi8vYnVncy53ZWJraXQub3JnL3Nob3dfYnVnLmNnaT9pZD04ODAwMworCisgICAgICAgIFJl
dmlld2VkIGJ5IE5PQk9EWSAoT09QUyEpLgorCisgICAgICAgICogLi4vLi4vU291cmNlL1dlYkNv
cmUvcGFnZS9Db25zb2xlLmNwcDoKKwogMjAxMi0wNi0wMSAgU2ltb24gSGF1c21hbm4gIDxzaW1v
bi5oYXVzbWFubkBub2tpYS5jb20+CiAKICAgICAgICAgW1F0XSBVc2UgLVdlcnJvciBvbmx5IGlu
IGRldmVsb3BlciBidWlsZHMKSW5kZXg6IFNvdXJjZS9XZWJDb3JlL3BhZ2UvQ29uc29sZS5jcHAK
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PQotLS0gU291cmNlL1dlYkNvcmUvcGFnZS9Db25zb2xlLmNwcAkocmV2aXNpb24g
MTE5MTQ5KQorKysgU291cmNlL1dlYkNvcmUvcGFnZS9Db25zb2xlLmNwcAkod29ya2luZyBjb3B5
KQpAQCAtMzEwLDE0ICszMTAsMT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