|
|
Created:
6 years, 8 months ago by bulach Modified:
6 years, 7 months ago CC:
chromium-reviews, telemetry+watch_chromium.org Base URL:
svn://svn.chromium.org/chrome/trunk/src Visibility:
Public. |
DescriptionTelemetry: re-enable cpu metric for page_cycler.
BUG=301714
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=268470
Patch Set 1 #Patch Set 2 : Fixes unittest #
Total comments: 3
Messages
Total messages: 22 (0 generated)
ptal (I bumped into it as part of https://codereview.chromium.org/239083010/ :))
On 2014/04/22 10:25:43, bulach wrote: > ptal (I bumped into it as part of https://codereview.chromium.org/239083010/ :)) I don't remember clearly why CPU metric was disabled -- there might have been something a little bit wrong about the results that it was reporting in some cases, but I can't remember clearly what it was ... do you remember there being a problem, Tony? Anyway, much thanks! The CPU stats in page_cycler have been abandoned for too long :-)
lgtm
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bulach@chromium.org/246453004/1
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: tryserver.chromium on linux_chromium_chromeos_rel
I should've known better, sorry! I fixed the unittests in the latest patchset... it was a simple change that added more coverage, but would you mind another quick look please?
On 2014/04/23 09:38:39, bulach wrote: > I should've known better, sorry! I fixed the unittests in the latest patchset... > it was a simple change that added more coverage, but would you mind another > quick look please? On 2014/04/23 09:38:39, bulach wrote: > I should've known better, sorry! I fixed the unittests in the latest patchset... > it was a simple change that added more coverage, but would you mind another > quick look please? By the principle of "one test method only testing one behavior", it seems like it shouldn't be necessary to check that there are per-page values with the names 'cpu_utilization.cpu_utilization_gpu' 'cpu_utilization.cpu_utilization_renderer' 'cpu_utilization.cpu_utilization_browser' in two test different methods, called testCacheHandled and testColdWarm. Maybe there should be a separate test method testPerPageValueNames which only checks these value names. Also, the CPU values (which depend on 'CpuProcessTime' and 'TotalTime' for each process type, which are set by FakeBrowser._iteration) are not tested here... which I think is okay, since I think that test should be in metrics/cpu_unittest.py.
https://codereview.chromium.org/246453004/diff/10001/tools/perf/measurements/... File tools/perf/measurements/page_cycler_unittest.py (right): https://codereview.chromium.org/246453004/diff/10001/tools/perf/measurements/... tools/perf/measurements/page_cycler_unittest.py:142: self.assertEqual(values[0].page, page) please advise: note that here and the test below, it had already broken the principle you mentioned as these are not truly "unit", they're larger sort of integration-type tests.. I'm happy to consolidate (141-147) and (171-181) together in its own test if you prefer. as for he values themselves: happy to test if you prefer, but as you said, the actual computation is deeper down in metrics/cpu.. please let me know your thoughts!
https://codereview.chromium.org/246453004/diff/10001/tools/perf/measurements/... File tools/perf/measurements/page_cycler_unittest.py (right): https://codereview.chromium.org/246453004/diff/10001/tools/perf/measurements/... tools/perf/measurements/page_cycler_unittest.py:142: self.assertEqual(values[0].page, page) On 2014/04/23 17:11:47, bulach wrote: > please advise: note that here and the test below, it had already broken the > principle you mentioned as these are not truly "unit", they're larger sort of > integration-type tests.. > > I'm happy to consolidate (141-147) and (171-181) together in its own test if you > prefer. > > as for he values themselves: happy to test if you prefer, but as you said, the > actual computation is deeper down in metrics/cpu.. > > please let me know your thoughts! My thoughts are that this CL LGTM as is. But, in theory, the test would be easier to understand if it were re-organized so that one test method tests only one thing. Perhaps outside of the scope of this CL.
https://codereview.chromium.org/246453004/diff/10001/tools/perf/measurements/... File tools/perf/measurements/page_cycler_unittest.py (right): https://codereview.chromium.org/246453004/diff/10001/tools/perf/measurements/... tools/perf/measurements/page_cycler_unittest.py:142: self.assertEqual(values[0].page, page) On 2014/04/23 18:13:38, qyearsley wrote: > On 2014/04/23 17:11:47, bulach wrote: > > please advise: note that here and the test below, it had already broken the > > principle you mentioned as these are not truly "unit", they're larger sort of > > integration-type tests.. > > > > I'm happy to consolidate (141-147) and (171-181) together in its own test if > you > > prefer. > > > > as for he values themselves: happy to test if you prefer, but as you said, the > > actual computation is deeper down in metrics/cpu.. > > > > please let me know your thoughts! > > My thoughts are that this CL LGTM as is. But, in theory, the test would be > easier to understand if it were re-organized so that one test method tests only > one thing. Perhaps outside of the scope of this CL. sgtm! I'll CQ this as is and send you a separate CL shortly splitting the tests shortly.
The CQ bit was checked by bulach@chromium.org
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bulach@chromium.org/246453004/10001
The CQ bit was unchecked by bulach@chromium.org
On 2014/04/24 08:57:20, I haz the power (commit-bot) wrote: > CQ is trying da patch. Follow status at > https://chromium-status.appspot.com/cq/bulach@chromium.org/246453004/10001 unchecking CQ, I didn't see tony's request :) will hold off until after the fixit.
The CQ bit was checked by bulach@chromium.org
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bulach@chromium.org/246453004/10001
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium
The CQ bit was checked by bulach@chromium.org
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bulach@chromium.org/246453004/10001
Message was sent while issue was closed.
Change committed as 268470 |