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

Issue 23155002: Implement ToValue() for SystemMetrics, SystemMemoryInfoKB, DiskInfo, and SwapInfo. (Closed)

Created:
7 years, 4 months ago by jwmak
Modified:
7 years, 3 months ago
CC:
chromium-reviews, erikwright+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@meminfo
Visibility:
Public.

Description

Implement ToValue() for SystemMetrics, SystemMemoryInfoKB, DiskInfo, and SwapInfo. These are used to serialize the data inside these structs. BUG=236763 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=221696

Patch Set 1 #

Patch Set 2 : cleanup #

Total comments: 2

Patch Set 3 : moved to process_metrics.cc #

Patch Set 4 : vmstats on linux #

Patch Set 5 : missing ifdef #

Patch Set 6 : move asvalue back to linux specific file #

Patch Set 7 : don't add substructs to systemmetrics yet #

Patch Set 8 : wrap meminfo with ifdef #

Patch Set 9 : rebase on prev patch #

Patch Set 10 : rebase onto older patch #

Patch Set 11 : rebase on prev patch #

Patch Set 12 : cleanup #

Patch Set 13 : fix rebase #

Patch Set 14 : fix messed up tracking #

Patch Set 15 : rebase on prev patch #

Patch Set 16 : removing rate stats, compute them later #

Total comments: 4

Patch Set 17 : change Value* AsValue() to scoped_ptr<Value> ToValue() #

Total comments: 1

Patch Set 18 : cast size_t to int #

Unified diffs Side-by-side diffs Delta from patch set Stats (+95 lines, -0 lines) Patch
M base/process/process_metrics.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 5 chunks +13 lines, -0 lines 0 comments Download
M base/process/process_metrics.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +15 lines, -0 lines 0 comments Download
M base/process/process_metrics_linux.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 3 chunks +67 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
nduca
if a struct is declared on multiple platforsm, then my advice is to put the ...
7 years, 4 months ago (2013-08-14 18:08:57 UTC) #1
jwmak
On 2013/08/14 18:08:57, nduca wrote: > if a struct is declared on multiple platforsm, then ...
7 years, 4 months ago (2013-08-14 18:39:27 UTC) #2
nduca
lgtm
7 years, 4 months ago (2013-08-15 01:07:37 UTC) #3
jwmak
7 years, 3 months ago (2013-08-31 00:27:07 UTC) #4
darin (slow to review)
https://codereview.chromium.org/23155002/diff/40001/base/process/process_metrics.h File base/process/process_metrics.h (right): https://codereview.chromium.org/23155002/diff/40001/base/process/process_metrics.h#newcode248 base/process/process_metrics.h:248: Value* AsValue() const; nit: this should return scoped_ptr<Value> nit: ...
7 years, 3 months ago (2013-08-31 03:45:12 UTC) #5
jwmak
https://codereview.chromium.org/23155002/diff/40001/base/process/process_metrics.h File base/process/process_metrics.h (right): https://codereview.chromium.org/23155002/diff/40001/base/process/process_metrics.h#newcode248 base/process/process_metrics.h:248: Value* AsValue() const; On 2013/08/31 03:45:12, darin wrote: > ...
7 years, 3 months ago (2013-09-04 18:49:18 UTC) #6
darin (slow to review)
LGTM https://codereview.chromium.org/23155002/diff/45001/base/process/process_metrics.cc File base/process/process_metrics.cc (right): https://codereview.chromium.org/23155002/diff/45001/base/process/process_metrics.cc#newcode35 base/process/process_metrics.cc:35: res->Set("meminfo", memory_info_.ToValue().release()); I see. DictionaryValue::Set should probably take ...
7 years, 3 months ago (2013-09-05 07:32:10 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jwmak@chromium.org/23155002/45001
7 years, 3 months ago (2013-09-05 16:17:47 UTC) #8
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 3 months ago (2013-09-05 17:03:47 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jwmak@chromium.org/23155002/67001
7 years, 3 months ago (2013-09-05 17:28:59 UTC) #10
commit-bot: I haz the power
The commit queue went berserk retrying too often for a seemingly flaky test on builder ...
7 years, 3 months ago (2013-09-06 04:56:33 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jwmak@chromium.org/23155002/67001
7 years, 3 months ago (2013-09-06 12:05:57 UTC) #12
commit-bot: I haz the power
7 years, 3 months ago (2013-09-06 13:13:26 UTC) #13
Message was sent while issue was closed.
Change committed as 221696

Powered by Google App Engine
This is Rietveld 408576698