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

Issue 16143005: monitor console command implemented. (Closed)

Created:
7 years, 6 months ago by SeRya
Modified:
7 years, 6 months ago
Reviewers:
vsevik, Peter.Rybin, yurys
CC:
blink-reviews, marja+watch_chromium.org, caseq+blink_chromium.org, Nate Chapin, loislo+blink_chromium.org, jsbell+bindings_chromium.org, eustas+blink_chromium.org, alph+blink_chromium.org, eae+blinkwatch, yurys+blink_chromium.org, lushnikov+blink_chromium.org, abarth-chromium, vsevik+blink_chromium.org, pfeldman+blink_chromium.org, apavlov+blink_chromium.org, adamk+blink_chromium.org, haraken, aandrey+blink_chromium.org
Visibility:
Public.

Description

monitor console command implemented. monitor logs each function call in console. For instance: function f() {} monitor(f); f(); unmonitor(f); Logs: function f called BUG=168776 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=152561

Patch Set 1 #

Patch Set 2 : traceCalls renamed to monitor #

Patch Set 3 : Fixing windows build. #

Total comments: 8

Patch Set 4 : Replacing set[Debug/Monitor]Breakpoint() by setBreakpoint(..., source,...). #

Total comments: 1

Patch Set 5 : Removed custom bindings. #

Total comments: 6

Patch Set 6 : Moved command implementation to C++. #

Total comments: 5

Patch Set 7 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+229 lines, -23 lines) Patch
M LayoutTests/http/tests/inspector/console-test.js View 1 chunk +5 lines, -0 lines 0 comments Download
A LayoutTests/inspector/debugger/monitor-console-command.html View 1 2 3 4 5 1 chunk +88 lines, -0 lines 0 comments Download
A LayoutTests/inspector/debugger/monitor-console-command-expected.txt View 1 2 3 4 5 1 chunk +35 lines, -0 lines 0 comments Download
M Source/bindings/v8/custom/V8InjectedScriptHostCustom.cpp View 1 2 3 4 5 6 4 chunks +37 lines, -5 lines 0 comments Download
M Source/core/inspector/InjectedScriptHost.h View 1 2 3 4 5 6 1 chunk +4 lines, -2 lines 0 comments Download
M Source/core/inspector/InjectedScriptHost.cpp View 1 2 3 4 5 6 2 chunks +24 lines, -4 lines 0 comments Download
M Source/core/inspector/InjectedScriptHost.idl View 1 2 3 4 5 1 chunk +4 lines, -2 lines 0 comments Download
M Source/core/inspector/InjectedScriptSource.js View 1 2 3 4 5 6 2 chunks +12 lines, -3 lines 0 comments Download
M Source/core/inspector/InspectorDebuggerAgent.h View 1 2 chunks +3 lines, -2 lines 0 comments Download
M Source/core/inspector/InspectorDebuggerAgent.cpp View 1 2 2 chunks +16 lines, -4 lines 0 comments Download
M Source/devtools/front_end/RuntimeModel.js View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 17 (0 generated)
SeRya
7 years, 6 months ago (2013-06-10 04:50:30 UTC) #1
vsevik
Yury, could you please have a look on this monitor implementation based on conditional breakpoint? ...
7 years, 6 months ago (2013-06-10 15:06:00 UTC) #2
SeRya
https://chromiumcodereview.appspot.com/16143005/diff/12001/LayoutTests/http/tests/inspector/console-test.js File LayoutTests/http/tests/inspector/console-test.js (right): https://chromiumcodereview.appspot.com/16143005/diff/12001/LayoutTests/http/tests/inspector/console-test.js#newcode91 LayoutTests/http/tests/inspector/console-test.js:91: InspectorTest.waitUntilMessageReceived = function(callback) On 2013/06/10 15:06:01, vsevik wrote: > ...
7 years, 6 months ago (2013-06-11 08:24:12 UTC) #3
vsevik
https://chromiumcodereview.appspot.com/16143005/diff/23003/Source/bindings/v8/custom/V8InjectedScriptHostCustom.cpp File Source/bindings/v8/custom/V8InjectedScriptHostCustom.cpp (right): https://chromiumcodereview.appspot.com/16143005/diff/23003/Source/bindings/v8/custom/V8InjectedScriptHostCustom.cpp#newcode368 Source/bindings/v8/custom/V8InjectedScriptHostCustom.cpp:368: if (args.Length() < 5) { Can we avoid having ...
7 years, 6 months ago (2013-06-11 09:18:32 UTC) #4
vsevik
On 2013/06/11 08:24:12, SeRya wrote: > https://chromiumcodereview.appspot.com/16143005/diff/12001/LayoutTests/http/tests/inspector/console-test.js > File LayoutTests/http/tests/inspector/console-test.js (right): > > https://chromiumcodereview.appspot.com/16143005/diff/12001/LayoutTests/http/tests/inspector/console-test.js#newcode91 > ...
7 years, 6 months ago (2013-06-11 09:22:05 UTC) #5
SeRya
On 2013/06/11 09:22:05, vsevik wrote: > On 2013/06/11 08:24:12, SeRya wrote: > > > https://chromiumcodereview.appspot.com/16143005/diff/12001/LayoutTests/http/tests/inspector/console-test.js ...
7 years, 6 months ago (2013-06-11 09:55:52 UTC) #6
SeRya
Removed custom bindings.
7 years, 6 months ago (2013-06-13 08:18:38 UTC) #7
yurys
Please provide more details in the description about the feature being implemented. https://chromiumcodereview.appspot.com/16143005/diff/44001/LayoutTests/inspector/debugger/monitor-console-command.html File LayoutTests/inspector/debugger/monitor-console-command.html ...
7 years, 6 months ago (2013-06-13 09:46:51 UTC) #8
yurys
not lgtm until the security concern is addressed. As discussed offline alternative solution may be ...
7 years, 6 months ago (2013-06-13 09:57:30 UTC) #9
SeRya
https://chromiumcodereview.appspot.com/16143005/diff/44001/LayoutTests/inspector/debugger/monitor-console-command.html File LayoutTests/inspector/debugger/monitor-console-command.html (right): https://chromiumcodereview.appspot.com/16143005/diff/44001/LayoutTests/inspector/debugger/monitor-console-command.html#newcode50 LayoutTests/inspector/debugger/monitor-console-command.html:50: InspectorTest.evaluateInConsole("unmonitor(simpleTestFunction2)"); On 2013/06/13 09:46:51, Yury Semikhatsky wrote: > Can ...
7 years, 6 months ago (2013-06-13 10:45:14 UTC) #10
yurys
https://codereview.chromium.org/16143005/diff/56001/Source/bindings/v8/custom/V8InjectedScriptHostCustom.cpp File Source/bindings/v8/custom/V8InjectedScriptHostCustom.cpp (right): https://codereview.chromium.org/16143005/diff/56001/Source/bindings/v8/custom/V8InjectedScriptHostCustom.cpp#newcode416 Source/bindings/v8/custom/V8InjectedScriptHostCustom.cpp:416: v8::Handle<v8::Function> function = v8::Handle<v8::Function>::Cast(args[0]); Please add a note that ...
7 years, 6 months ago (2013-06-17 12:06:14 UTC) #11
Peter.Rybin
https://codereview.chromium.org/16143005/diff/56001/Source/core/inspector/InjectedScriptHost.cpp File Source/core/inspector/InjectedScriptHost.cpp (right): https://codereview.chromium.org/16143005/diff/56001/Source/core/inspector/InjectedScriptHost.cpp#newcode165 Source/core/inspector/InjectedScriptHost.cpp:165: builder.appendLiteral(" called\" + (arguments.length > 0 ? \" with ...
7 years, 6 months ago (2013-06-17 14:38:13 UTC) #12
SeRya
https://codereview.chromium.org/16143005/diff/56001/Source/bindings/v8/custom/V8InjectedScriptHostCustom.cpp File Source/bindings/v8/custom/V8InjectedScriptHostCustom.cpp (right): https://codereview.chromium.org/16143005/diff/56001/Source/bindings/v8/custom/V8InjectedScriptHostCustom.cpp#newcode416 Source/bindings/v8/custom/V8InjectedScriptHostCustom.cpp:416: v8::Handle<v8::Function> function = v8::Handle<v8::Function>::Cast(args[0]); On 2013/06/17 12:06:14, Yury Semikhatsky ...
7 years, 6 months ago (2013-06-17 15:08:56 UTC) #13
yurys
On 2013/06/17 14:38:13, peter.rybin wrote: > https://codereview.chromium.org/16143005/diff/56001/Source/core/inspector/InjectedScriptHost.cpp > File Source/core/inspector/InjectedScriptHost.cpp (right): > > https://codereview.chromium.org/16143005/diff/56001/Source/core/inspector/InjectedScriptHost.cpp#newcode165 > ...
7 years, 6 months ago (2013-06-17 15:11:13 UTC) #14
yurys
lgtm
7 years, 6 months ago (2013-06-17 15:15:45 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/serya@chromium.org/16143005/75001
7 years, 6 months ago (2013-06-17 15:19:10 UTC) #16
commit-bot: I haz the power
7 years, 6 months ago (2013-06-17 16:48:03 UTC) #17
Message was sent while issue was closed.
Change committed as 152561

Powered by Google App Engine
This is Rietveld 408576698