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

Issue 10827151: Revert 149766 - Performance monitor stats gathering. (Closed)

Created:
8 years, 4 months ago by mazda
Modified:
8 years, 4 months ago
CC:
chromium-reviews, Aaron Boodman, Yoyo Zhou, Devlin
Visibility:
Public.

Description

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -220 lines) Patch
M chrome/browser/performance_monitor/constants.h View 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/performance_monitor/constants.cc View 1 chunk +2 lines, -9 lines 0 comments Download
M chrome/browser/performance_monitor/metric_details.h View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/performance_monitor/metric_details.cc View 1 chunk +0 lines, -6 lines 0 comments Download
M chrome/browser/performance_monitor/performance_monitor.h View 5 chunks +0 lines, -23 lines 0 comments Download
M chrome/browser/performance_monitor/performance_monitor.cc View 5 chunks +1 line, -92 lines 0 comments Download
M chrome/browser/performance_monitor/performance_monitor_browsertest.cc View 5 chunks +0 lines, -85 lines 2 comments Download

Messages

Total messages: 4 (0 generated)
mazda
8 years, 4 months ago (2012-08-03 01:52:32 UTC) #1
mitchellwrosen
https://chromiumcodereview.appspot.com/10827151/diff/1/chrome/browser/performance_monitor/performance_monitor_browsertest.cc File chrome/browser/performance_monitor/performance_monitor_browsertest.cc (left): https://chromiumcodereview.appspot.com/10827151/diff/1/chrome/browser/performance_monitor/performance_monitor_browsertest.cc#oldcode535 chrome/browser/performance_monitor/performance_monitor_browsertest.cc:535: EXPECT_GT(stats[0].value, 0); http://build.chromium.org/p/chromium.chromiumos/builders/Linux%20ChromiumOS%20Tests%20%282%29/builds/5610 404'd, is there an alternate URL ...
8 years, 4 months ago (2012-08-07 17:26:32 UTC) #2
Yoyo Zhou
https://chromiumcodereview.appspot.com/10827151/diff/1/chrome/browser/performance_monitor/performance_monitor_browsertest.cc File chrome/browser/performance_monitor/performance_monitor_browsertest.cc (left): https://chromiumcodereview.appspot.com/10827151/diff/1/chrome/browser/performance_monitor/performance_monitor_browsertest.cc#oldcode535 chrome/browser/performance_monitor/performance_monitor_browsertest.cc:535: EXPECT_GT(stats[0].value, 0); On 2012/08/07 17:26:32, mitchellwrosen wrote: > http://build.chromium.org/p/chromium.chromiumos/builders/Linux%2520ChromiumOS%2520Tests%2520%25282%2529/builds/5610 ...
8 years, 4 months ago (2012-08-07 19:09:50 UTC) #3
mitchellwrosen
8 years, 4 months ago (2012-08-07 19:33:16 UTC) #4
On 2012/08/07 19:09:50, Yoyo Zhou wrote:
>
https://chromiumcodereview.appspot.com/10827151/diff/1/chrome/browser/perform...
> File chrome/browser/performance_monitor/performance_monitor_browsertest.cc
> (left):
> 
>
https://chromiumcodereview.appspot.com/10827151/diff/1/chrome/browser/perform...
> chrome/browser/performance_monitor/performance_monitor_browsertest.cc:535:
> EXPECT_GT(stats[0].value, 0);
> On 2012/08/07 17:26:32, mitchellwrosen wrote:
> >
>
http://build.chromium.org/p/chromium.chromiumos/builders/Linux%252520Chromium...
> > 404'd, is there an alternate URL I can look at?
> > 
> > Anyways, I believe it was this EXPECT_GT that failed. The whole
> spin-for-a-while
> > is a bit of a hack: all I'm trying to do is cause the process to use a
> > noticeable percentage of CPU cycles so that I can verify a number > 0 was
> > inserted as a statistic. Seems more like a test for
> ProcessMetrics::GetCPUUsage,
> > and relies on my dumb for loop working as intended.
> > 
> > Would an appropriate fix be to delete the entire test from the for-loop spin
> and
> > down?
> 
> Your assessment looks right:
> 
>
http://chromium-build-logs.appspot.com/gtest_query?gtest_query=PerformanceMon...
> 
> It seems like you could just remove the spinloop and the EXPECT_GT checks.
This
> way you would still test that a second value was recorded. But it's up to you
> whether you think this is worth testing.

Sounds good. I need to push a CL onto a new issue, get an LGTM there, and then
commit, right? If so, here it is:
https://chromiumcodereview.appspot.com/10831196

Powered by Google App Engine
This is Rietveld 408576698