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

Issue 10843010: Adds a method to the Performance Monitor Database to fetch the most recent metric. (Closed)

Created:
8 years, 4 months ago by chebert
Modified:
8 years, 4 months ago
Reviewers:
eaugusti, Devlin, Yoyo Zhou
CC:
chromium-reviews
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Adds a method to the Performance Monitor Database to fetch the most recent metric. BUG=130212 TEST=database_unittest gets the most recent metric Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=149668

Patch Set 1 #

Patch Set 2 : tested for bad metric #

Patch Set 3 : added comment #

Total comments: 4

Patch Set 4 : using get instead of an iterator #

Total comments: 2

Patch Set 5 : using the ContainsKey() method #

Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -0 lines) Patch
M chrome/browser/performance_monitor/database.h View 1 2 1 chunk +12 lines, -0 lines 0 comments Download
M chrome/browser/performance_monitor/database.cc View 1 2 3 4 2 chunks +18 lines, -0 lines 0 comments Download
M chrome/browser/performance_monitor/database_unittest.cc View 1 2 3 4 1 chunk +17 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
chebert
8 years, 4 months ago (2012-07-31 18:37:45 UTC) #1
eaugusti
https://chromiumcodereview.appspot.com/10843010/diff/4001/chrome/browser/performance_monitor/database.cc File chrome/browser/performance_monitor/database.cc (right): https://chromiumcodereview.appspot.com/10843010/diff/4001/chrome/browser/performance_monitor/database.cc#newcode390 chrome/browser/performance_monitor/database.cc:390: std::string recent_start_key = recent_map_[recent_map_key]; Not really a "start" key, ...
8 years, 4 months ago (2012-07-31 18:46:06 UTC) #2
chebert
https://chromiumcodereview.appspot.com/10843010/diff/4001/chrome/browser/performance_monitor/database.cc File chrome/browser/performance_monitor/database.cc (right): https://chromiumcodereview.appspot.com/10843010/diff/4001/chrome/browser/performance_monitor/database.cc#newcode390 chrome/browser/performance_monitor/database.cc:390: std::string recent_start_key = recent_map_[recent_map_key]; On 2012/07/31 18:46:06, eaugusti wrote: ...
8 years, 4 months ago (2012-07-31 19:26:35 UTC) #3
eaugusti
lgtm
8 years, 4 months ago (2012-07-31 19:38:52 UTC) #4
chebert
Yoz, would you mind reviewing this when you get a chance?
8 years, 4 months ago (2012-07-31 21:23:49 UTC) #5
Yoyo Zhou
LGTM, only minor changes requested http://codereview.chromium.org/10843010/diff/5/chrome/browser/performance_monitor/database.cc File chrome/browser/performance_monitor/database.cc (right): http://codereview.chromium.org/10843010/diff/5/chrome/browser/performance_monitor/database.cc#newcode388 chrome/browser/performance_monitor/database.cc:388: if (!recent_map_.count(recent_map_key)) Use ContainsKey ...
8 years, 4 months ago (2012-08-02 11:54:57 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hebert.christopherj@chromium.org/10843010/12001
8 years, 4 months ago (2012-08-02 17:24:26 UTC) #7
commit-bot: I haz the power
8 years, 4 months ago (2012-08-02 19:13:16 UTC) #8
Change committed as 149668

Powered by Google App Engine
This is Rietveld 408576698