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

Issue 10907121: Add guards to metric values; erase bad events/metrics from db (Closed)

Created:
8 years, 3 months ago by Devlin
Modified:
8 years, 3 months ago
CC:
chromium-reviews
Base URL:
http://git.chromium.org/chromium/src.git@dc_use_units
Visibility:
Public.

Description

Add guards to metric values; erase bad events/metrics from db Improves the database by not inserting blatantly erroneous data, and by deleting any events or metrics which cannot be properly retrieved from the database. Also make DB take a metric for AddMetric() - this makes it so that we have a more accurate timestamp since we record the time before the thread-jumping. BUG=130212 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=157168

Patch Set 1 : #

Total comments: 10

Patch Set 2 : Eriq's requests #

Total comments: 35

Patch Set 3 : Yoz's requests #

Total comments: 2

Patch Set 4 : #

Total comments: 4

Patch Set 5 : Estade's requests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+396 lines, -106 lines) Patch
M chrome/browser/performance_monitor/constants.h View 1 2 3 4 2 chunks +17 lines, -0 lines 0 comments Download
M chrome/browser/performance_monitor/constants.cc View 1 2 3 4 2 chunks +14 lines, -2 lines 0 comments Download
M chrome/browser/performance_monitor/database.h View 3 chunks +5 lines, -7 lines 0 comments Download
M chrome/browser/performance_monitor/database.cc View 1 2 3 9 chunks +65 lines, -22 lines 0 comments Download
M chrome/browser/performance_monitor/database_unittest.cc View 1 2 10 chunks +144 lines, -22 lines 0 comments Download
M chrome/browser/performance_monitor/metric.h View 1 2 3 1 chunk +17 lines, -2 lines 0 comments Download
M chrome/browser/performance_monitor/metric.cc View 1 2 2 chunks +75 lines, -4 lines 0 comments Download
M chrome/browser/performance_monitor/performance_monitor.h View 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/performance_monitor/performance_monitor.cc View 5 chunks +19 lines, -12 lines 0 comments Download
M chrome/browser/performance_monitor/startup_timer.cc View 3 chunks +10 lines, -8 lines 0 comments Download
M chrome/browser/ui/webui/performance_monitor/performance_monitor_ui_constants.cc View 1 2 3 4 1 chunk +1 line, -13 lines 0 comments Download
M chrome/browser/ui/webui/performance_monitor/performance_monitor_ui_util.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/webui/performance_monitor/performance_monitor_ui_util.cc View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/performance_monitor/performance_monitor_ui_util_unittest.cc View 4 chunks +21 lines, -10 lines 0 comments Download
M chrome/browser/ui/webui/performance_monitor/web_ui_handler.cc View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 12 (0 generated)
eaugusti
https://chromiumcodereview.appspot.com/10907121/diff/2001/chrome/browser/performance_monitor/database.cc File chrome/browser/performance_monitor/database.cc (right): https://chromiumcodereview.appspot.com/10907121/diff/2001/chrome/browser/performance_monitor/database.cc#newcode201 chrome/browser/performance_monitor/database.cc:201: if (!metric.Validate()) { Should this be a DCHECK? If ...
8 years, 3 months ago (2012-09-07 23:10:55 UTC) #1
Devlin
https://chromiumcodereview.appspot.com/10907121/diff/2001/chrome/browser/performance_monitor/database.cc File chrome/browser/performance_monitor/database.cc (right): https://chromiumcodereview.appspot.com/10907121/diff/2001/chrome/browser/performance_monitor/database.cc#newcode201 chrome/browser/performance_monitor/database.cc:201: if (!metric.Validate()) { On 2012/09/07 23:10:55, eaugusti wrote: > ...
8 years, 3 months ago (2012-09-10 17:49:14 UTC) #2
eaugusti
lgtm
8 years, 3 months ago (2012-09-10 18:21:04 UTC) #3
Devlin
+ Yoyo
8 years, 3 months ago (2012-09-10 18:27:07 UTC) #4
Yoyo Zhou
https://chromiumcodereview.appspot.com/10907121/diff/10001/chrome/browser/performance_monitor/database.cc File chrome/browser/performance_monitor/database.cc (right): https://chromiumcodereview.appspot.com/10907121/diff/10001/chrome/browser/performance_monitor/database.cc#newcode164 chrome/browser/performance_monitor/database.cc:164: if (!(value = base::JSONReader::Read(it->value().ToString())) || Assignment inline inside conditionals ...
8 years, 3 months ago (2012-09-10 23:52:44 UTC) #5
Devlin
https://chromiumcodereview.appspot.com/10907121/diff/10001/chrome/browser/performance_monitor/database.cc File chrome/browser/performance_monitor/database.cc (right): https://chromiumcodereview.appspot.com/10907121/diff/10001/chrome/browser/performance_monitor/database.cc#newcode164 chrome/browser/performance_monitor/database.cc:164: if (!(value = base::JSONReader::Read(it->value().ToString())) || On 2012/09/10 23:52:44, Yoyo ...
8 years, 3 months ago (2012-09-11 18:52:17 UTC) #6
Yoyo Zhou
LGTM https://chromiumcodereview.appspot.com/10907121/diff/10001/chrome/browser/performance_monitor/metric.cc File chrome/browser/performance_monitor/metric.cc (right): https://chromiumcodereview.appspot.com/10907121/diff/10001/chrome/browser/performance_monitor/metric.cc#newcode28 chrome/browser/performance_monitor/metric.cc:28: const double kMaxSharedMemoryUsage = 1024.0 * 1024.0 * ...
8 years, 3 months ago (2012-09-13 00:09:20 UTC) #7
Devlin
+ Evan for (relatively small) webui changes https://chromiumcodereview.appspot.com/10907121/diff/10001/chrome/browser/performance_monitor/metric.h File chrome/browser/performance_monitor/metric.h (right): https://chromiumcodereview.appspot.com/10907121/diff/10001/chrome/browser/performance_monitor/metric.h#newcode48 chrome/browser/performance_monitor/metric.h:48: std::string ValueAsString() ...
8 years, 3 months ago (2012-09-13 17:00:24 UTC) #8
Evan Stade
lgtm with nits https://chromiumcodereview.appspot.com/10907121/diff/14003/chrome/browser/performance_monitor/constants.h File chrome/browser/performance_monitor/constants.h (right): https://chromiumcodereview.appspot.com/10907121/diff/14003/chrome/browser/performance_monitor/constants.h#newcode28 chrome/browser/performance_monitor/constants.h:28: const int64 kBytesPerKilobyte = 1 << ...
8 years, 3 months ago (2012-09-14 08:39:16 UTC) #9
Devlin
https://chromiumcodereview.appspot.com/10907121/diff/14003/chrome/browser/performance_monitor/constants.h File chrome/browser/performance_monitor/constants.h (right): https://chromiumcodereview.appspot.com/10907121/diff/14003/chrome/browser/performance_monitor/constants.h#newcode28 chrome/browser/performance_monitor/constants.h:28: const int64 kBytesPerKilobyte = 1 << 10; On 2012/09/14 ...
8 years, 3 months ago (2012-09-17 16:35:59 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rdevlin.cronin@chromium.org/10907121/13002
8 years, 3 months ago (2012-09-17 16:36:20 UTC) #11
commit-bot: I haz the power
8 years, 3 months ago (2012-09-17 19:34:47 UTC) #12
Change committed as 157168

Powered by Google App Engine
This is Rietveld 408576698