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

Issue 712593002: DevTools: DevTools opened for an old version of chrome or webview can't record cpu/heap profile. (Closed)

Created:
6 years, 1 month ago by loislo
Modified:
6 years, 1 month ago
Reviewers:
alph, yurys, 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
Project:
blink
Visibility:
Public.

Description

DevTools: DevTools opened for an old version of chrome or webview can't record cpu/heap profile. The reason of that is a difference in URL for TempStorageSharedWorker between the host and the device front-ends If DevTools window for a host page was opened before DevTools window for a device then the second DevTools window will fail to run the shared worker and vice versa. BUG=430794 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=185012

Patch Set 1 #

Total comments: 2

Patch Set 2 : minor change #

Patch Set 3 : worker name was changed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -5 lines) Patch
M Source/devtools/front_end/bindings/TempFile.js View 1 2 1 chunk +12 lines, -5 lines 0 comments Download

Messages

Total messages: 12 (3 generated)
loislo
6 years, 1 month ago (2014-11-07 14:43:19 UTC) #2
yurys
https://codereview.chromium.org/712593002/diff/1/Source/devtools/front_end/bindings/TempFile.js File Source/devtools/front_end/bindings/TempFile.js (right): https://codereview.chromium.org/712593002/diff/1/Source/devtools/front_end/bindings/TempFile.js#newcode373 Source/devtools/front_end/bindings/TempFile.js:373: if (e.name !== "URLMismatchError") Invert the condition?
6 years, 1 month ago (2014-11-07 14:50:07 UTC) #3
loislo
https://codereview.chromium.org/712593002/diff/1/Source/devtools/front_end/bindings/TempFile.js File Source/devtools/front_end/bindings/TempFile.js (right): https://codereview.chromium.org/712593002/diff/1/Source/devtools/front_end/bindings/TempFile.js#newcode373 Source/devtools/front_end/bindings/TempFile.js:373: if (e.name !== "URLMismatchError") On 2014/11/07 14:50:06, yurys wrote: ...
6 years, 1 month ago (2014-11-07 14:51:46 UTC) #4
pfeldman
This does not fix the bug though.
6 years, 1 month ago (2014-11-07 14:52:43 UTC) #5
loislo
On 2014/11/07 14:52:43, pfeldman wrote: > This does not fix the bug though. After an ...
6 years, 1 month ago (2014-11-09 14:56:50 UTC) #6
pfeldman
lgtm.
6 years, 1 month ago (2014-11-09 16:09:28 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/712593002/40001
6 years, 1 month ago (2014-11-09 16:23:07 UTC) #10
commit-bot: I haz the power
Committed patchset #3 (id:40001) as 185012
6 years, 1 month ago (2014-11-09 16:55:57 UTC) #11
yurys
6 years, 1 month ago (2014-11-09 21:18:07 UTC) #12
Message was sent while issue was closed.
On 2014/11/09 14:56:50, loislo wrote:
> On 2014/11/07 14:52:43, pfeldman wrote:
> > This does not fix the bug though.
> 
> After an offline discussion we decided to change the worker name.
> So the worker for an old version of devtools will coexist with worker for a
new
> version.
Why is it not being done as part of this change then? Without it the remote
profiling is still broken with or without this patch.

> In this case these workers will do the job twice. As a result the developer
will
> loose the data
> that has been saved into temp storage. This would affect save operation for
> early recorded
> cpu profiles, heap snapshots and timeline. Also timeline wouldn't be able to
> show snapshots. 
> 
Is there a plan to show a notification that the functionality is broken or we
just silently stop doing certain things?

> We expecting that it would be very rare case.
> As a workaround the developer could  record another profile or timeline.

Powered by Google App Engine
This is Rietveld 408576698