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

Issue 22836004: Chrome tracing for system-wide performance stats. (Closed)

Created:
7 years, 4 months ago by jwmak
Modified:
7 years, 3 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, dsinclair+watch_chromium.org, erikwright+watch_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@asvalue
Visibility:
Public.

Description

Chrome tracing for system-wide performance stats. Trace memory, swap, ZRAM, and disk activity and place the data in JSON to be displayed by trace-viewer. BUG=236763 TEST=base_unittests TraceSystemStatsMonitorTest.* Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=223806

Patch Set 1 #

Patch Set 2 : removed outdated unit test #

Patch Set 3 : removed outdated unittests #

Patch Set 4 : fix rebase conflicts #

Patch Set 5 : changed GetCurrent to Sample #

Total comments: 16

Patch Set 6 : cleanup (not rebased yet) #

Patch Set 7 : rebase #

Total comments: 6

Patch Set 8 : cleanup #

Total comments: 1

Patch Set 9 : nit #

Total comments: 6

Patch Set 10 : use single thread task runner instead of message loop proxy #

Total comments: 2

Patch Set 11 : rebase #

Patch Set 12 : rebase again #

Patch Set 13 : do not compile new code on IOS #

Patch Set 14 : wrap unit test with !defined IOS #

Patch Set 15 : wrapping both test and instantiation #

Patch Set 16 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+285 lines, -0 lines) Patch
M base/base.gyp View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M base/base.gypi View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M base/debug/trace_event.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
A base/debug/trace_event_system_stats_monitor.h View 1 2 3 4 5 6 7 8 9 1 chunk +75 lines, -0 lines 0 comments Download
A base/debug/trace_event_system_stats_monitor.cc View 1 2 3 4 5 6 7 8 9 1 chunk +132 lines, -0 lines 0 comments Download
A base/debug/trace_event_system_stats_monitor_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +66 lines, -0 lines 0 comments Download
M content/browser/browser_main_loop.h View 1 2 3 4 5 2 chunks +2 lines, -0 lines 0 comments Download
M content/browser/browser_main_loop.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +7 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
nduca
https://codereview.chromium.org/22836004/diff/10001/base/debug/trace_event_system_stats_monitor.cc File base/debug/trace_event_system_stats_monitor.cc (right): https://codereview.chromium.org/22836004/diff/10001/base/debug/trace_event_system_stats_monitor.cc#newcode52 base/debug/trace_event_system_stats_monitor.cc:52: /* dont commit dead code. https://codereview.chromium.org/22836004/diff/10001/base/debug/trace_event_system_stats_monitor.cc#newcode60 base/debug/trace_event_system_stats_monitor.cc:60: *prev_system_metrics = ...
7 years, 3 months ago (2013-08-28 23:45:40 UTC) #1
jwmak
https://chromiumcodereview.appspot.com/22836004/diff/10001/base/debug/trace_event_system_stats_monitor.cc File base/debug/trace_event_system_stats_monitor.cc (right): https://chromiumcodereview.appspot.com/22836004/diff/10001/base/debug/trace_event_system_stats_monitor.cc#newcode52 base/debug/trace_event_system_stats_monitor.cc:52: /* On 2013/08/28 23:45:40, nduca wrote: > dont commit ...
7 years, 3 months ago (2013-09-06 22:39:36 UTC) #2
nduca
nearly lg, you just need the id to be set up right. using "this" should ...
7 years, 3 months ago (2013-09-07 07:19:20 UTC) #3
nduca
(dsinclair is a good resource to im with while im in LON)
7 years, 3 months ago (2013-09-07 07:19:38 UTC) #4
jwmak
https://codereview.chromium.org/22836004/diff/17001/base/debug/trace_event_system_stats_monitor.cc File base/debug/trace_event_system_stats_monitor.cc (right): https://codereview.chromium.org/22836004/diff/17001/base/debug/trace_event_system_stats_monitor.cc#newcode108 base/debug/trace_event_system_stats_monitor.cc:108: const int kSnapshotId = 1; On 2013/09/07 07:19:20, nduca ...
7 years, 3 months ago (2013-09-08 09:26:05 UTC) #5
nduca
lgtm
7 years, 3 months ago (2013-09-09 11:04:43 UTC) #6
dsinclair
lgtm with nit. https://codereview.chromium.org/22836004/diff/25001/content/browser/browser_main_loop.cc File content/browser/browser_main_loop.cc (right): https://codereview.chromium.org/22836004/diff/25001/content/browser/browser_main_loop.cc#newcode500 content/browser/browser_main_loop.cc:500: base::MessageLoop::current()->message_loop_proxy())); nit: indent 2 more.
7 years, 3 months ago (2013-09-09 14:14:22 UTC) #7
jwmak
7 years, 3 months ago (2013-09-09 16:15:58 UTC) #8
darin (slow to review)
https://codereview.chromium.org/22836004/diff/31001/base/debug/trace_event_system_stats_monitor.cc File base/debug/trace_event_system_stats_monitor.cc (right): https://codereview.chromium.org/22836004/diff/31001/base/debug/trace_event_system_stats_monitor.cc#newcode46 base/debug/trace_event_system_stats_monitor.cc:46: system_stats_ = SystemMetrics::Sample(); nit: insert new line before close ...
7 years, 3 months ago (2013-09-12 20:51:15 UTC) #9
jwmak
https://codereview.chromium.org/22836004/diff/31001/base/debug/trace_event_system_stats_monitor.cc File base/debug/trace_event_system_stats_monitor.cc (right): https://codereview.chromium.org/22836004/diff/31001/base/debug/trace_event_system_stats_monitor.cc#newcode46 base/debug/trace_event_system_stats_monitor.cc:46: system_stats_ = SystemMetrics::Sample(); On 2013/09/12 20:51:15, darin wrote: > ...
7 years, 3 months ago (2013-09-13 20:57:10 UTC) #10
darin (slow to review)
LGTM, but just one suggestion: https://codereview.chromium.org/22836004/diff/37001/base/debug/trace_event_system_stats_monitor.h File base/debug/trace_event_system_stats_monitor.h (right): https://codereview.chromium.org/22836004/diff/37001/base/debug/trace_event_system_stats_monitor.h#newcode25 base/debug/trace_event_system_stats_monitor.h:25: class BASE_EXPORT TraceEventSystemStatsMonitor Had ...
7 years, 3 months ago (2013-09-17 04:17:58 UTC) #11
darin (slow to review)
Also, I'm curious about the overall design here. Are we putting too much tracing code ...
7 years, 3 months ago (2013-09-17 04:18:54 UTC) #12
jwmak
https://codereview.chromium.org/22836004/diff/37001/base/debug/trace_event_system_stats_monitor.h File base/debug/trace_event_system_stats_monitor.h (right): https://codereview.chromium.org/22836004/diff/37001/base/debug/trace_event_system_stats_monitor.h#newcode25 base/debug/trace_event_system_stats_monitor.h:25: class BASE_EXPORT TraceEventSystemStatsMonitor On 2013/09/17 04:17:59, darin wrote: > ...
7 years, 3 months ago (2013-09-17 05:39:38 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jwmak@chromium.org/22836004/48001
7 years, 3 months ago (2013-09-17 19:06:35 UTC) #14
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 3 months ago (2013-09-17 19:17:38 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jwmak@chromium.org/22836004/58001
7 years, 3 months ago (2013-09-17 19:50:40 UTC) #16
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 3 months ago (2013-09-17 20:01:56 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jwmak@chromium.org/22836004/85009
7 years, 3 months ago (2013-09-18 01:18:45 UTC) #18
darin (slow to review)
On 2013/09/17 05:39:38, jwmak wrote: > https://codereview.chromium.org/22836004/diff/37001/base/debug/trace_event_system_stats_monitor.h > File base/debug/trace_event_system_stats_monitor.h (right): > > https://codereview.chromium.org/22836004/diff/37001/base/debug/trace_event_system_stats_monitor.h#newcode25 > ...
7 years, 3 months ago (2013-09-18 07:31:41 UTC) #19
commit-bot: I haz the power
Change committed as 223806
7 years, 3 months ago (2013-09-18 07:33:30 UTC) #20
nduca
7 years, 3 months ago (2013-09-18 21:15:59 UTC) #21
Message was sent while issue was closed.
I suspect we could put it in content/. I think this is something that just
slipped through the cracks in the hurry to get it and the tcmalloc sampler
working.

Powered by Google App Engine
This is Rietveld 408576698