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

Issue 136793008: Clear DevTools temp storage (Closed)

Created:
6 years, 11 months ago by yurys
Modified:
6 years, 11 months ago
Reviewers:
alph, pfeldman, loislo
CC:
blink-reviews, caseq+blink_chromium.org, loislo+blink_chromium.org, eustas+blink_chromium.org, alph+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, aandrey+blink_chromium.org
Visibility:
Public.

Description

Clear DevTools temp storage Now that DevTools caches CPU and heap profiles in temporary files we need to be careful to remove these files. The files are deleted in case a profile is removed as a result of user action and on DevTools shutdown. To make sure we don't leave any garbage the temproary storage is also cleared on first attempt to create a new temp file. A SharedWorker is used to synchronize between DevTools front-ends when clearing temp files to avoid removing temp files that might be used by another front-end. BUG=327298, 324769 R=alph@chromium.org, pfeldman@chromium.org Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=165135

Patch Set 1 #

Total comments: 22

Patch Set 2 : Comments addressed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+266 lines, -1 line) Patch
M Source/devtools/devtools.gyp View 1 4 chunks +19 lines, -0 lines 0 comments Download
M Source/devtools/devtools.gypi View 1 1 chunk +3 lines, -0 lines 0 comments Download
M Source/devtools/front_end/CPUProfileView.js View 1 chunk +8 lines, -0 lines 0 comments Download
M Source/devtools/front_end/HeapSnapshotView.js View 1 chunk +1 line, -0 lines 0 comments Download
M Source/devtools/front_end/ProfilesPanel.js View 3 chunks +14 lines, -0 lines 0 comments Download
M Source/devtools/front_end/TempFile.js View 1 3 chunks +73 lines, -1 line 0 comments Download
A Source/devtools/front_end/TempStorageSharedWorker.js View 1 1 chunk +141 lines, -0 lines 0 comments Download
M Source/devtools/scripts/frontend_modules.json View 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
yurys
6 years, 11 months ago (2014-01-14 15:01:21 UTC) #1
alph
lgtm https://codereview.chromium.org/136793008/diff/1/Source/devtools/front_end/TempStorageSharedWorker.js File Source/devtools/front_end/TempStorageSharedWorker.js (right): https://codereview.chromium.org/136793008/diff/1/Source/devtools/front_end/TempStorageSharedWorker.js#newcode70 Source/devtools/front_end/TempStorageSharedWorker.js:70: didClearTempStorage(); Can you call the callback right after ...
6 years, 11 months ago (2014-01-14 15:46:34 UTC) #2
yurys
https://codereview.chromium.org/136793008/diff/1/Source/devtools/front_end/TempStorageSharedWorker.js File Source/devtools/front_end/TempStorageSharedWorker.js (right): https://codereview.chromium.org/136793008/diff/1/Source/devtools/front_end/TempStorageSharedWorker.js#newcode70 Source/devtools/front_end/TempStorageSharedWorker.js:70: didClearTempStorage(); On 2014/01/14 15:46:34, alph wrote: > Can you ...
6 years, 11 months ago (2014-01-14 15:58:59 UTC) #3
pfeldman
lgtm https://codereview.chromium.org/136793008/diff/1/Source/devtools/devtools.gyp File Source/devtools/devtools.gyp (right): https://codereview.chromium.org/136793008/diff/1/Source/devtools/devtools.gyp#newcode441 Source/devtools/devtools.gyp:441: '<@(devtools_uglify_files)' codemirror dependency is missing here, JavaScriptFormatter, CSSFormatter ...
6 years, 11 months ago (2014-01-14 16:26:28 UTC) #4
yurys
https://codereview.chromium.org/136793008/diff/1/Source/devtools/devtools.gyp File Source/devtools/devtools.gyp (right): https://codereview.chromium.org/136793008/diff/1/Source/devtools/devtools.gyp#newcode441 Source/devtools/devtools.gyp:441: '<@(devtools_uglify_files)' On 2014/01/14 16:26:28, pfeldman wrote: > codemirror dependency ...
6 years, 11 months ago (2014-01-15 08:30:10 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yurys@chromium.org/136793008/120001
6 years, 11 months ago (2014-01-15 08:40:56 UTC) #6
yurys
6 years, 11 months ago (2014-01-15 15:31:19 UTC) #7
Message was sent while issue was closed.
Committed patchset #2 manually as r165135 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698