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

Issue 115299: Add initial version of DevTools Profiler (Closed)

Created:
11 years, 7 months ago by mnaganov (inactive)
Modified:
9 years, 7 months ago
Reviewers:
yurys, pfeldman
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Add initial version of DevTools Profiler. To activate it, run Chromium with the following additional js-flags: "--prof --noprof_auto --logfile=*" Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=16052

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 30

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Patch Set 7 : '' #

Total comments: 14

Patch Set 8 : '' #

Patch Set 9 : '' #

Patch Set 10 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+486 lines, -2 lines) Patch
M webkit/glue/devtools/debugger_agent.h View 1 2 3 4 5 6 7 1 chunk +17 lines, -2 lines 0 comments Download
M webkit/glue/devtools/debugger_agent_impl.h View 1 2 3 4 5 6 7 2 chunks +10 lines, -0 lines 0 comments Download
M webkit/glue/devtools/debugger_agent_impl.cc View 1 2 3 4 5 6 7 1 chunk +20 lines, -0 lines 0 comments Download
M webkit/glue/devtools/js/debugger_agent.js View 1 2 3 4 5 6 7 4 chunks +65 lines, -0 lines 0 comments Download
M webkit/glue/devtools/js/devtools.html View 2 chunks +8 lines, -0 lines 0 comments Download
M webkit/glue/devtools/js/devtools.js View 1 2 3 4 1 chunk +109 lines, -0 lines 0 comments Download
M webkit/glue/devtools/js/devtools_host_stub.js View 1 2 3 4 2 chunks +32 lines, -0 lines 0 comments Download
M webkit/glue/devtools/js/inspector_controller_impl.js View 1 2 3 4 5 6 7 1 chunk +16 lines, -0 lines 0 comments Download
A webkit/glue/devtools/js/profiler_processor.js View 9 1 chunk +201 lines, -0 lines 0 comments Download
M webkit/webkit.gyp View 1 2 3 4 5 6 7 3 chunks +8 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
mnaganov (inactive)
11 years, 7 months ago (2009-05-13 15:44:19 UTC) #1
pfeldman
http://codereview.chromium.org/115299/diff/1017/37 File webkit/glue/devtools/debugger_agent.h (right): http://codereview.chromium.org/115299/diff/1017/37#newcode19 Line 19: METHOD0(PauseProfiling) \ StartProfiling http://codereview.chromium.org/115299/diff/1017/37#newcode22 Line 22: METHOD0(ResumeProfiling) \ ...
11 years, 7 months ago (2009-05-13 15:53:44 UTC) #2
yurys
http://codereview.chromium.org/115299/diff/1017/44 File webkit/glue/devtools/js/debugger_agent.js (right): http://codereview.chromium.org/115299/diff/1017/44#newcode74 Line 74: this.isProcessingProfile_ = false; this flag may become inconsistent ...
11 years, 7 months ago (2009-05-13 16:04:14 UTC) #3
mnaganov (inactive)
http://codereview.chromium.org/115299/diff/1017/37 File webkit/glue/devtools/debugger_agent.h (right): http://codereview.chromium.org/115299/diff/1017/37#newcode19 Line 19: METHOD0(PauseProfiling) \ On 2009/05/13 15:53:44, pfeldman wrote: > ...
11 years, 7 months ago (2009-05-14 07:42:59 UTC) #4
pfeldman
LGTM http://codereview.chromium.org/115299/diff/80/84 File webkit/glue/devtools/debugger_agent.h (right): http://codereview.chromium.org/115299/diff/80/84#newcode20 Line 20: /* Stops profiling (samples collection). */ \ ...
11 years, 7 months ago (2009-05-14 08:24:20 UTC) #5
mnaganov (inactive)
11 years, 7 months ago (2009-05-14 08:46:24 UTC) #6
http://codereview.chromium.org/115299/diff/80/84
File webkit/glue/devtools/debugger_agent.h (right):

http://codereview.chromium.org/115299/diff/80/84#newcode20
Line 20: /* Stops profiling (samples collection). */ \
On 2009/05/14 08:24:20, pfeldman wrote:
> nit: be more positive in ordering things :)

Done.

http://codereview.chromium.org/115299/diff/80/82
File webkit/glue/devtools/debugger_agent_manager.cc (right):

http://codereview.chromium.org/115299/diff/80/82#newcode184
Line 184: DCHECK(attached_agents_->contains(debugger_agent));
On 2009/05/14 08:24:20, pfeldman wrote:
> no need for this DCHECK and maybe you pull this one line call up the call
graph?

Done.

http://codereview.chromium.org/115299/diff/80/82#newcode190
Line 190: DCHECK(attached_agents_->contains(debugger_agent));
On 2009/05/14 08:24:20, pfeldman wrote:
> ditto

Done.

http://codereview.chromium.org/115299/diff/80/82#newcode201
Line 201: debugger_agent->DidGetLogLines(buffer, pos + read_size);
On 2009/05/14 08:24:20, pfeldman wrote:
> Does client know how much information there really is pending?

No. At least not now. It just retrieves log lines until there are any. As
currently the size of the log buffer is finite, the process is guaranteed to
finish.

http://codereview.chromium.org/115299/diff/80/89
File webkit/glue/devtools/js/inspector_controller_impl.js (right):

http://codereview.chromium.org/115299/diff/80/89#newcode153
Line 153: WebInspector.setRecordingProfile(true);
On 2009/05/14 08:24:20, pfeldman wrote:
> could you put this into the agent instead?

Done.

http://codereview.chromium.org/115299/diff/80/89#newcode162
Line 162: devtools.tools.getDebuggerAgent().stopProfiling();
On 2009/05/14 08:24:20, pfeldman wrote:
> ditto

Done.

http://codereview.chromium.org/115299/diff/80/81
File webkit/webkit.gyp (right):

http://codereview.chromium.org/115299/diff/80/81#newcode4667
Line 4667: '../v8/tools/splaytree.js',
On 2009/05/14 08:24:20, pfeldman wrote:
> nit: sort alphabetically.

Done.

Powered by Google App Engine
This is Rietveld 408576698