Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11)

Issue 99181: Enhancing profiling data processing code with functionality needed for the Dev Tools Profiler. (Closed)

Created:
11 years, 8 months ago by Mikhail Naganov
Modified:
9 years, 7 months ago
CC:
v8-dev
Visibility:
Public.

Description

Enhancing profiling data processing code with functionality needed for the Dev Tools Profiler. Details: - added properties / functions in view objects needed for WebKit's ProfileView; - added ability to count profiles for specific functions. The tickprocessor functionality does not affected. Committed: http://code.google.com/p/v8/source/detail?r=1823

Patch Set 1 #

Total comments: 8
Unified diffs Side-by-side diffs Delta from patch set Stats (+328 lines, -73 lines) Patch
M test/mjsunit/tools/profile.js View 7 chunks +74 lines, -10 lines 0 comments Download
M tools/profile.js View 8 chunks +109 lines, -60 lines 0 comments Download
M tools/profile_view.js View 3 chunks +138 lines, -0 lines 8 comments Download
M tools/splaytree.js View 1 chunk +2 lines, -1 line 0 comments Download
M tools/tickprocessor.js View 2 chunks +5 lines, -2 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Mikhail Naganov
11 years, 8 months ago (2009-04-29 09:55:01 UTC) #1
Søren Thygesen Gjesse
LGTM http://codereview.chromium.org/99181/diff/1/4 File tools/profile_view.js (right): http://codereview.chromium.org/99181/diff/1/4#newcode79 Line 79: this.head = head; Trailing underscores? http://codereview.chromium.org/99181/diff/1/4#newcode97 Line ...
11 years, 7 months ago (2009-04-29 21:46:22 UTC) #2
Mikhail Naganov
11 years, 7 months ago (2009-04-30 08:06:02 UTC) #3
Thanks for reviewing. This code is actually a moving target because WebInspector
is evolving too, and the transport of profiler messages isn't finalized yet.

http://codereview.chromium.org/99181/diff/1/4
File tools/profile_view.js (right):

http://codereview.chromium.org/99181/diff/1/4#newcode79
Line 79: this.head = head;
On 2009/04/29 21:46:22, Søren Gjesse wrote:
> Trailing underscores?

No. This is for compatibility with WebInspector original objects.

http://codereview.chromium.org/99181/diff/1/4#newcode97
Line 97: destProfile[profileNames[j]] = this[profileNames[j]];
On 2009/04/29 21:46:22, Søren Gjesse wrote:
> This means that each profile references itself as well as the other two. Is
the
> reference to itself required by WebKit ProfileView?

Well, it is needed in the version of WebInspector I'm experimenting on. Thanks
to your question, I looked at the current state and found that in
http://trac.webkit.org/changeset/42808 the interface had been changed. So when
I'll update my code, this will be not needed.

http://codereview.chromium.org/99181/diff/1/4#newcode215
Line 215: this.callIdentifier = 0;
On 2009/04/29 21:46:22, Søren Gjesse wrote:
> Trailing underscores?

No again. This is for compatibility with WebInspector.

http://codereview.chromium.org/99181/diff/1/4#newcode231
Line 231: /^(?:LazyCompile|Function): (.*)$/;
On 2009/04/29 21:46:22, Søren Gjesse wrote:
> Maybe we should go and change the logged strings instead of making these part
of
> the function name...

I'm currently thinking on how to better transfer profiler events from V8 to
DevTools. So maybe instead of gluing names in V8 and them parsing them back in
this code, we'll be transferring them in a more structured form.

Powered by Google App Engine
This is Rietveld 408576698