<?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>31133</bug_id>
          
          <creation_ts>2009-11-04 11:35:18 -0800</creation_ts>
          <short_desc>Web Inspector: Add console.getProfile function</short_desc>
          <delta_ts>2014-12-12 14:09:50 -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>INVALID</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>0</everconfirmed>
          <reporter name="David Boyer">boyerd</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bweinstein</cc>
    
    <cc>joepeck</cc>
    
    <cc>keishi</cc>
    
    <cc>mnaganov</cc>
    
    <cc>pfeldman</cc>
    
    <cc>pmuellr</cc>
    
    <cc>rik</cc>
    
    <cc>robert.colburn+bugzilla</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>160531</commentid>
    <comment_count>0</comment_count>
    <who name="David Boyer">boyerd</who>
    <bug_when>2009-11-04 11:35:18 -0800</bug_when>
    <thetext>This functionality is implemented by FireUnit plugin for Firefox (FireUnit is an addon that modifies Firebug)

The function would return a JavaScript object that represents the profiling data.

And example dataset would be : 

{ 
  calls : 200, // # of calls
  time : 200.00ms  // total time of profile
  data : [
    { 
     avgTime : 9.525, 
     calls : 9, 
     fileName : &quot;test.js&quot;, 
     maxTime : 25,
     minTime : 8,
     name : &quot;doSomethingFunction&quot;,
     ownTime : 85.727,  // Time executing in me (not child functions)
     percent : 26.21,
     time : 85.727  // Total time spent in me (and child calls)
   },
    &lt;...&gt;
  ]
}

Can&apos;t find the function documented in fireunit plugin, but it&apos;s there.
I&apos;m making the same request at Firebug, to move this from the fireunit addon into the firebug addon.

Ideally the result js from the two functions should be identical.

http://fireunit.org/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>160540</commentid>
    <comment_count>1</comment_count>
    <who name="Patrick Mueller">pmuellr</who>
    <bug_when>2009-11-04 11:52:42 -0800</bug_when>
    <thetext>Seems like good timing if this is not yet in FireBug proper.  We should coordinate with the FireBug devs to coordinate on the format.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>160766</commentid>
    <comment_count>2</comment_count>
    <who name="Mikhail Naganov">mnaganov</who>
    <bug_when>2009-11-05 01:28:28 -0800</bug_when>
    <thetext>This information is already available via &apos;console.profiles&apos; array. Here is a reduced output sample from console:

console.profile(&quot;aaa&quot;)
console.profileEnd(&quot;aaa&quot;)
console.profiles[0]
Profile
  _profilesTreeElement: Object
  children: Array
    0: ProfileNode
       callUID: 619779680
       children: Array
       functionName: &quot;(program)&quot;
       lineNumber: 1
       numberOfCalls: 13
       selfPercent: 0.02909303036682285
       selfTime: 2.383056640625
       totalPercent: 0.02909303036682285
       totalTime: 2.383056640625
       url: &quot;&quot;

Also please mind that in Firebug profiles are flat (no callee / caller information is exposed), while in Inspector a call tree is exposed in a profile.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>620945</commentid>
    <comment_count>3</comment_count>
    <who name="Rob Colburn">robert.colburn+bugzilla</who>
    <bug_when>2012-05-10 14:09:06 -0700</bug_when>
    <thetext>I think we can call this resolved now, right?

Since console.profile() is doc&apos;d by FireBug and WebKit now.
http://getfirebug.com/wiki/index.php/Console_API#console.profile.28.5Btitle.5D.29
http://www.webkit.org/blog/197/web-inspector-redesign/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>621395</commentid>
    <comment_count>4</comment_count>
    <who name="Mikhail Naganov">mnaganov</who>
    <bug_when>2012-05-11 01:48:10 -0700</bug_when>
    <thetext>Not quite. This issue is about adding a new function &apos;console.getProfile&apos;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>622187</commentid>
    <comment_count>5</comment_count>
    <who name="Rob Colburn">robert.colburn+bugzilla</who>
    <bug_when>2012-05-11 19:05:01 -0700</bug_when>
    <thetext>Ah, it sounded like David was just asking for the data of &apos;fireunit.getProfile()&apos;, which is now available.

The FireUnit project hasn&apos;t been actively maintained for some time.  I wonder if it would be reasonable to build the same extension for Web Inspector, now that Web Timing is spec&apos;d and implemented in WebKit.

It would seem that @jeresig and team moved on from the project to TestSwarm and such.

Is there any additional functionality that FireUnit provides that is unattainable in WebKit.

Btw: seems like the best docs are on @jeresig&apos;s site http://ejohn.org</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1055134</commentid>
    <comment_count>6</comment_count>
    <who name="Brian Burg">burg</who>
    <bug_when>2014-12-12 14:09:50 -0800</bug_when>
    <thetext>Closing as invalid, as this bug pertains to the old inspector UI and/or its tests.
Please file a new bug (https://www.webkit.org/new-inspector-bug) if the bug/feature/issue is still relevant to WebKit trunk.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>