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

Issue 409113006: Don't rely only on __del__ to cleanup PowerMetric when Smoothness.DidRunActions is not called. (Closed)

Created:
6 years, 5 months ago by chrishenry
Modified:
6 years, 5 months ago
Reviewers:
nednguyen, tonyg
CC:
chromium-reviews, telemetry+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Don't rely only on __del__ to cleanup PowerMetric when Smoothness.DidRunActions is not called. Now, CleanUpAfterPage will also do the cleanup. (This is not a great solution, but it will unblock the other patch without re-engineering the whole resource cleanup mechanisms.) In my other patch, the order of GC changes somehow (not sure yet why), which caused SmoothnessUnitTest to fail since __del__ is not called before the next test starts. BUG=350841, 348271 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=284868

Patch Set 1 #

Total comments: 2

Patch Set 2 : Make unit tests nicer! #

Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -2 lines) Patch
M tools/perf/measurements/smoothness.py View 1 chunk +5 lines, -2 lines 0 comments Download
M tools/perf/measurements/smoothness_unittest.py View 1 2 chunks +38 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
chrishenry
6 years, 5 months ago (2014-07-22 22:43:04 UTC) #1
tonyg
https://codereview.chromium.org/409113006/diff/1/tools/perf/measurements/smoothness.py File tools/perf/measurements/smoothness.py (right): https://codereview.chromium.org/409113006/diff/1/tools/perf/measurements/smoothness.py#newcode40 tools/perf/measurements/smoothness.py:40: self._power_metric.Stop(page, tab) Doesn't this mean we'll run it twice ...
6 years, 5 months ago (2014-07-22 22:46:13 UTC) #2
chrishenry
I cleaned up the unit test further, should be nicer now. https://codereview.chromium.org/409113006/diff/1/tools/perf/measurements/smoothness.py File tools/perf/measurements/smoothness.py (right): ...
6 years, 5 months ago (2014-07-22 22:56:37 UTC) #3
nednguyen
On 2014/07/22 22:56:37, chrishenry wrote: > I cleaned up the unit test further, should be ...
6 years, 5 months ago (2014-07-22 23:01:47 UTC) #4
chrishenry
The CQ bit was checked by chrishenry@google.com
6 years, 5 months ago (2014-07-23 00:35:54 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/chrishenry@google.com/409113006/20001
6 years, 5 months ago (2014-07-23 00:37:23 UTC) #6
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_chromium_x64_rel on tryserver.chromium ...
6 years, 5 months ago (2014-07-23 01:28:22 UTC) #7
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-23 01:44:21 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/win_chromium_x64_rel/builds/33355)
6 years, 5 months ago (2014-07-23 01:44:22 UTC) #9
nednguyen
The CQ bit was checked by nednguyen@google.com
6 years, 5 months ago (2014-07-23 03:21:53 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/chrishenry@google.com/409113006/20001
6 years, 5 months ago (2014-07-23 03:23:14 UTC) #11
commit-bot: I haz the power
6 years, 5 months ago (2014-07-23 06:43:34 UTC) #12
Message was sent while issue was closed.
Change committed as 284868

Powered by Google App Engine
This is Rietveld 408576698