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

Issue 638673002: DevTools: tracing: remove state management from InspectorTracingAgent. (Closed)

Created:
6 years, 2 months ago by loislo
Modified:
6 years, 2 months ago
Reviewers:
caseq, vsevik, pfeldman, yurys
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
Project:
blink
Visibility:
Public.

Description

DevTools: tracing: remove state management from InspectorTracingAgent. Tracing state management happens on the browser side. So the local state does nothing. Also if DevTools window was closed when tracing was active the next DevTools session had this flag enabled. So it was not possible to correctly process tracing data because they had no TracingStartedInPage event. The state used to be necessary when we had console.timeline/timelineEnd implementation. This test case has been covered by timeline-trivial.html BUG=420008 R= yurys@chromium.org, caseq@chromium.org, pfeldman@chromium.org Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=183608

Patch Set 1 #

Patch Set 2 : compile time warning #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+0 lines, -9 lines) Patch
M Source/core/inspector/InspectorTracingAgent.cpp View 1 4 chunks +0 lines, -9 lines 3 comments Download

Messages

Total messages: 13 (4 generated)
loislo
6 years, 2 months ago (2014-10-07 16:31:59 UTC) #1
caseq
lgtm
6 years, 2 months ago (2014-10-13 08:31:14 UTC) #2
vsevik
lgtm
6 years, 2 months ago (2014-10-13 12:03:39 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/638673002/1
6 years, 2 months ago (2014-10-13 12:42:16 UTC) #6
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/linux_blink_rel/builds/28972)
6 years, 2 months ago (2014-10-13 12:52:54 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/638673002/140001
6 years, 2 months ago (2014-10-13 14:02:41 UTC) #10
commit-bot: I haz the power
Committed patchset #2 (id:140001) as 183608
6 years, 2 months ago (2014-10-13 15:04:19 UTC) #11
yurys
https://codereview.chromium.org/638673002/diff/140001/Source/core/inspector/InspectorTracingAgent.cpp File Source/core/inspector/InspectorTracingAgent.cpp (left): https://codereview.chromium.org/638673002/diff/140001/Source/core/inspector/InspectorTracingAgent.cpp#oldcode44 Source/core/inspector/InspectorTracingAgent.cpp:44: if (m_state->getBoolean(TracingAgentState::tracingStarted)) { I believe we'd better return an ...
6 years, 2 months ago (2014-10-15 08:43:47 UTC) #12
yurys
6 years, 2 months ago (2014-10-15 08:46:23 UTC) #13
Message was sent while issue was closed.
https://codereview.chromium.org/638673002/diff/140001/Source/core/inspector/I...
File Source/core/inspector/InspectorTracingAgent.cpp (left):

https://codereview.chromium.org/638673002/diff/140001/Source/core/inspector/I...
Source/core/inspector/InspectorTracingAgent.cpp:44: if
(m_state->getBoolean(TracingAgentState::tracingStarted)) {
On 2014/10/15 08:43:46, yurys wrote:
> I believe we'd better return an error when tracing is already started. It can
be
> determined at this point by checking whether
> m_state->getString(TracingAgentState::sessionId) is empty.

It can be a DCHECK since we reject such requests on the browser side:
https://code.google.com/p/chromium/codesearch#chromium/src/content/browser/de...

Powered by Google App Engine
This is Rietveld 408576698