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

Issue 321173002: DevTools: notify backend agents about profiler started/stopped events (Closed)

Created:
6 years, 6 months ago by loislo
Modified:
6 years, 5 months ago
Reviewers:
vsevik, pfeldman
CC:
blink-reviews, caseq+blink_chromium.org, loislo+blink_chromium.org, eustas+blink_chromium.org, malch+blink_chromium.org, yurys+blink_chromium.org, lushnikov+blink_chromium.org, vsevik+blink_chromium.org, pfeldman+blink_chromium.org, paulirish+reviews_chromium.org, apavlov+blink_chromium.org, devtools-reviews_chromium.org, sergeyv+blink_chromium.org, aandrey+blink_chromium.org
Visibility:
Public.

Description

DevTools: notify backend agents about profiler started/stopped events This patch provides a way to notify backend agents about starting a profiler. Each agent should switch to a mode which doesn't affect the performance. As example DebuggerAgent needs to disable breakpoints, allow v8 optimizations, etc. DOM and Network agents may simple disable themselves. BUG=381115 R=pfeldman@chromium.org Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=175946

Patch Set 1 #

Patch Set 2 : comments addressed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -13 lines) Patch
M Source/core/inspector/InspectorBaseAgent.h View 2 chunks +5 lines, -0 lines 0 comments Download
M Source/core/inspector/InspectorBaseAgent.cpp View 1 chunk +12 lines, -0 lines 0 comments Download
M Source/core/inspector/InspectorController.cpp View 1 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/inspector/InspectorProfilerAgent.h View 3 chunks +3 lines, -2 lines 0 comments Download
M Source/core/inspector/InspectorProfilerAgent.cpp View 4 chunks +6 lines, -3 lines 0 comments Download
M Source/core/inspector/InspectorTimelineAgent.h View 1 3 chunks +4 lines, -3 lines 0 comments Download
M Source/core/inspector/InspectorTimelineAgent.cpp View 1 4 chunks +4 lines, -1 line 0 comments Download
M Source/core/inspector/WorkerInspectorController.cpp View 1 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
loislo
6 years, 6 months ago (2014-06-10 15:17:47 UTC) #1
pfeldman
lgtm lets add that to timeline and tracing. Also, do we want to make it ...
6 years, 6 months ago (2014-06-10 15:26:59 UTC) #2
loislo
On 2014/06/10 15:26:59, pfeldman_ooo wrote: > lgtm > > lets add that to timeline and ...
6 years, 6 months ago (2014-06-10 15:30:33 UTC) #3
vsevik
On 2014/06/10 15:26:59, pfeldman_ooo wrote: > lgtm > > lets add that to timeline and ...
6 years, 6 months ago (2014-06-10 15:32:24 UTC) #4
loislo
On 2014/06/10 15:32:24, vsevik wrote: > On 2014/06/10 15:26:59, pfeldman_ooo wrote: > > lgtm > ...
6 years, 6 months ago (2014-06-10 15:57:02 UTC) #5
loislo
The CQ bit was checked by loislo@chromium.org
6 years, 6 months ago (2014-06-10 15:57:04 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/loislo@chromium.org/321173002/20001
6 years, 6 months ago (2014-06-10 15:58:09 UTC) #7
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_blink_rel on tryserver.blink ...
6 years, 6 months ago (2014-06-10 17:39:02 UTC) #8
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-10 22:39:03 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: win_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/win_blink_rel/builds/11462)
6 years, 6 months ago (2014-06-10 22:39:04 UTC) #10
loislo
Committed patchset #2 manually as r175946 (presubmit successful).
6 years, 6 months ago (2014-06-11 06:18:11 UTC) #11
loislo
A revert of this CL has been created in https://codereview.chromium.org/327203002/ by loislo@chromium.org. The reason for ...
6 years, 6 months ago (2014-06-11 12:17:01 UTC) #12
pfeldman
6 years, 5 months ago (2014-06-25 04:52:14 UTC) #13
Message was sent while issue was closed.
> The reason for reverting is: We came to the conclusion that this patch
> moves us in a wrong direction. 
> With this approach we would have to manage 4 pairs of states.
Disabled+stopped,
> disabled+started, enabled+stopped, etc up to enabled+started :)
> in the each agent. So we would like to try the simplest one, just use
> enable/disable states and fix the problems related to them..

I am not sure I understand the 4 pairs of states (8 in total?). As I see it, we
have 3 states in total:

- disabled
- enabled
- suspended

I still think this is the right way to proceed.

Powered by Google App Engine
This is Rietveld 408576698