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

Issue 109933006: Implement sampling profiler (chromium side change) (Closed)

Created:
7 years ago by haraken
Modified:
6 years, 11 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, dsinclair+watch_chromium.org, erikwright+watch_chromium.org, jam
Visibility:
Public.

Description

Patch Set 1 #

Patch Set 2 : first CL #

Total comments: 22

Patch Set 3 : #

Total comments: 3

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Total comments: 5

Patch Set 7 : #

Total comments: 2

Patch Set 8 : All comments addressed #

Total comments: 4

Patch Set 9 : #

Patch Set 10 : #

Patch Set 11 : #

Patch Set 12 : #

Patch Set 13 : #

Patch Set 14 : #

Patch Set 15 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+229 lines, -67 lines) Patch
M base/debug/trace_event.h View 1 2 3 4 5 6 7 5 chunks +9 lines, -5 lines 0 comments Download
M base/debug/trace_event_android.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M base/debug/trace_event_impl.h View 1 2 3 4 5 6 6 chunks +19 lines, -12 lines 0 comments Download
M base/debug/trace_event_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 13 chunks +22 lines, -12 lines 0 comments Download
M base/debug/trace_event_unittest.cc View 1 2 3 4 5 6 7 8 9 36 chunks +72 lines, -20 lines 0 comments Download
M base/test/trace_event_analyzer_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/lifetime/application_lifetime.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M components/tracing/child_trace_message_filter.cc View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M content/app/android/library_loader_hooks.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M content/app/content_main_runner.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/media/webrtc_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/tracing/tracing_controller_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/tracing/tracing_controller_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 6 chunks +16 lines, -5 lines 0 comments Download
M content/browser/tracing/tracing_ui.cc View 1 2 3 4 5 6 7 8 9 10 11 12 6 chunks +81 lines, -13 lines 0 comments Download
M content/common/gpu/client/gl_helper_unittests.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 42 (0 generated)
haraken
This is the first version of the sampling profiler. Would you take a quick look ...
7 years ago (2013-12-11 04:56:48 UTC) #1
dsinclair
https://codereview.chromium.org/109933006/diff/20001/base/debug/trace_event_impl.cc File base/debug/trace_event_impl.cc (right): https://codereview.chromium.org/109933006/diff/20001/base/debug/trace_event_impl.cc#newcode1352 base/debug/trace_event_impl.cc:1352: // TODO(haraken): Don't call Platform::Join from the UI thread. ...
7 years ago (2013-12-11 15:55:04 UTC) #2
Xianzhu
https://codereview.chromium.org/109933006/diff/20001/base/debug/trace_event_impl.cc File base/debug/trace_event_impl.cc (right): https://codereview.chromium.org/109933006/diff/20001/base/debug/trace_event_impl.cc#newcode1662 base/debug/trace_event_impl.cc:1662: return static_cast<int>(subtle::NoBarrier_AtomicIncrement(&generation_, 1)); Thanks for fixing this! Would it ...
7 years ago (2013-12-11 17:53:41 UTC) #3
haraken
Thanks for review! I'll polish up the CL, add tests and ping you :) https://codereview.chromium.org/109933006/diff/20001/base/debug/trace_event_impl.cc ...
7 years ago (2013-12-12 00:48:47 UTC) #4
haraken
https://codereview.chromium.org/109933006/diff/20001/base/debug/trace_event_impl.cc File base/debug/trace_event_impl.cc (right): https://codereview.chromium.org/109933006/diff/20001/base/debug/trace_event_impl.cc#newcode1352 base/debug/trace_event_impl.cc:1352: // TODO(haraken): Don't call Platform::Join from the UI thread. ...
7 years ago (2013-12-12 01:54:52 UTC) #5
haraken
On 2013/12/12 01:54:52, haraken wrote: > https://codereview.chromium.org/109933006/diff/20001/base/debug/trace_event_impl.cc > File base/debug/trace_event_impl.cc (right): > > https://codereview.chromium.org/109933006/diff/20001/base/debug/trace_event_impl.cc#newcode1352 > ...
7 years ago (2013-12-12 04:27:24 UTC) #6
nduca
https://codereview.chromium.org/109933006/diff/20001/base/debug/trace_event.h File base/debug/trace_event.h (right): https://codereview.chromium.org/109933006/diff/20001/base/debug/trace_event.h#newcode960 base/debug/trace_event.h:960: #define TRACE_EVENT_FLAG_SAMPLING (static_cast<unsigned char>(1 << 3)) we might have ...
7 years ago (2013-12-12 07:02:41 UTC) #7
haraken
https://codereview.chromium.org/109933006/diff/20001/base/debug/trace_event_impl.cc File base/debug/trace_event_impl.cc (right): https://codereview.chromium.org/109933006/diff/20001/base/debug/trace_event_impl.cc#newcode901 base/debug/trace_event_impl.cc:901: name, 0, 0, NULL, NULL, NULL, NULL, TRACE_EVENT_FLAG_SAMPLING); On ...
7 years ago (2013-12-12 07:34:27 UTC) #8
dsinclair
https://codereview.chromium.org/109933006/diff/20001/base/debug/trace_event_impl.cc File base/debug/trace_event_impl.cc (right): https://codereview.chromium.org/109933006/diff/20001/base/debug/trace_event_impl.cc#newcode901 base/debug/trace_event_impl.cc:901: name, 0, 0, NULL, NULL, NULL, NULL, TRACE_EVENT_FLAG_SAMPLING); On ...
7 years ago (2013-12-12 15:19:31 UTC) #9
haraken
Thanks for review! https://codereview.chromium.org/109933006/diff/20001/base/debug/trace_event_impl.cc File base/debug/trace_event_impl.cc (right): https://codereview.chromium.org/109933006/diff/20001/base/debug/trace_event_impl.cc#newcode901 base/debug/trace_event_impl.cc:901: name, 0, 0, NULL, NULL, NULL, ...
7 years ago (2013-12-12 15:32:17 UTC) #10
dsinclair
https://codereview.chromium.org/109933006/diff/20001/base/debug/trace_event_impl.cc File base/debug/trace_event_impl.cc (right): https://codereview.chromium.org/109933006/diff/20001/base/debug/trace_event_impl.cc#newcode901 base/debug/trace_event_impl.cc:901: name, 0, 0, NULL, NULL, NULL, NULL, TRACE_EVENT_FLAG_SAMPLING); On ...
7 years ago (2013-12-13 15:55:56 UTC) #11
haraken
> I think I'm getting confused on how this works. Please correct me if I'm ...
7 years ago (2013-12-13 16:07:00 UTC) #12
haraken
- I removed the TRACE_EVENT_FLAG_SAMPLING flag. - I removed the MONITORING_SAMPLING flag. - I introduced ...
7 years ago (2013-12-18 21:48:10 UTC) #13
haraken
On 2013/12/18 21:48:10, haraken wrote: > - I removed the TRACE_EVENT_FLAG_SAMPLING flag. > > - ...
7 years ago (2013-12-18 21:49:00 UTC) #14
Xianzhu
https://codereview.chromium.org/109933006/diff/40001/base/debug/trace_event_impl.cc File base/debug/trace_event_impl.cc (right): https://codereview.chromium.org/109933006/diff/40001/base/debug/trace_event_impl.cc#newcode1783 base/debug/trace_event_impl.cc:1783: phase == TRACE_EVENT_PHASE_SAMPLE) { On 2013/12/18 21:48:10, haraken wrote: ...
7 years ago (2013-12-18 22:26:54 UTC) #15
haraken
Thanks wang! https://codereview.chromium.org/109933006/diff/40001/base/debug/trace_event_impl.cc File base/debug/trace_event_impl.cc (right): https://codereview.chromium.org/109933006/diff/40001/base/debug/trace_event_impl.cc#newcode1783 base/debug/trace_event_impl.cc:1783: phase == TRACE_EVENT_PHASE_SAMPLE) { On 2013/12/18 22:26:54, ...
7 years ago (2013-12-18 22:40:21 UTC) #16
haraken
Discussed with Wang offline. PTAL. - I removed the TRACE_EVENT_FLAG_SAMPLING flag. - I removed the ...
7 years ago (2013-12-19 00:19:05 UTC) #17
haraken
https://codereview.chromium.org/109933006/diff/100001/base/debug/trace_event.h File base/debug/trace_event.h (right): https://codereview.chromium.org/109933006/diff/100001/base/debug/trace_event.h#newcode734 base/debug/trace_event.h:734: base::debug::TraceLog::ENABLED_FOR_RECORDING) { \ I'll land the same fix to ...
7 years ago (2013-12-19 00:19:14 UTC) #18
Xianzhu
https://codereview.chromium.org/109933006/diff/100001/base/debug/trace_event.h File base/debug/trace_event.h (right): https://codereview.chromium.org/109933006/diff/100001/base/debug/trace_event.h#newcode734 base/debug/trace_event.h:734: base::debug::TraceLog::ENABLED_FOR_RECORDING) { \ We also need to check ENABLED_FOR_EVENT_CALLBACK ...
7 years ago (2013-12-19 00:39:57 UTC) #19
haraken
PTAL https://codereview.chromium.org/109933006/diff/100001/base/debug/trace_event.h File base/debug/trace_event.h (right): https://codereview.chromium.org/109933006/diff/100001/base/debug/trace_event.h#newcode734 base/debug/trace_event.h:734: base::debug::TraceLog::ENABLED_FOR_RECORDING) { \ On 2013/12/19 00:39:57, Xianzhu wrote: ...
7 years ago (2013-12-19 00:53:58 UTC) #20
Xianzhu
trace_event part lgtm. https://codereview.chromium.org/109933006/diff/120001/base/debug/trace_event.h File base/debug/trace_event.h (right): https://codereview.chromium.org/109933006/diff/120001/base/debug/trace_event.h#newcode728 base/debug/trace_event.h:728: #define TRACE_EVENT_CATEGORY_GROUP_ENABLED_FOR_RECORDING_MODE( \ Nit: I think ...
7 years ago (2013-12-19 01:01:04 UTC) #21
haraken
Thanks for review! https://codereview.chromium.org/109933006/diff/120001/base/debug/trace_event.h File base/debug/trace_event.h (right): https://codereview.chromium.org/109933006/diff/120001/base/debug/trace_event.h#newcode728 base/debug/trace_event.h:728: #define TRACE_EVENT_CATEGORY_GROUP_ENABLED_FOR_RECORDING_MODE( \ On 2013/12/19 01:01:05, ...
7 years ago (2013-12-19 01:34:01 UTC) #22
haraken
dsinclair@: Would you take a look at base/debug/ as an OWNER? jochen@: Would you rubber-stamp ...
7 years ago (2013-12-19 01:37:29 UTC) #23
jochen (gone - plz use gerrit)
lgtm
7 years ago (2013-12-20 07:55:27 UTC) #24
dsinclair
lgtm with nit. Sorry for the review delay. https://codereview.chromium.org/109933006/diff/140001/base/debug/trace_event_impl.cc File base/debug/trace_event_impl.cc (right): https://codereview.chromium.org/109933006/diff/140001/base/debug/trace_event_impl.cc#newcode1198 base/debug/trace_event_impl.cc:1198: if ...
7 years ago (2013-12-20 14:42:29 UTC) #25
haraken
Thanks for review! https://codereview.chromium.org/109933006/diff/140001/base/debug/trace_event_impl.cc File base/debug/trace_event_impl.cc (right): https://codereview.chromium.org/109933006/diff/140001/base/debug/trace_event_impl.cc#newcode1198 base/debug/trace_event_impl.cc:1198: if (mode_ == MONITORING_MODE && On ...
6 years, 12 months ago (2013-12-25 07:52:30 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/haraken@chromium.org/109933006/190001
6 years, 12 months ago (2013-12-25 07:52:44 UTC) #27
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) base_unittests, browser_tests, interactive_ui_tests, net_unittests, unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=206257
6 years, 12 months ago (2013-12-25 08:09:26 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/haraken@chromium.org/109933006/190001
6 years, 12 months ago (2013-12-25 10:46:21 UTC) #29
commit-bot: I haz the power
Retried try job too often on ios_dbg_simulator for step(s) base_unittests, compile, content_unittests, crypto_unittests, net_unittests, sql_unittests, ...
6 years, 12 months ago (2013-12-25 11:13:02 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/haraken@chromium.org/109933006/680001
6 years, 12 months ago (2013-12-25 11:39:15 UTC) #31
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) base_unittests, browser_tests, interactive_ui_tests, net_unittests, unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=208351
6 years, 12 months ago (2013-12-25 12:02:44 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/haraken@chromium.org/109933006/250005
6 years, 12 months ago (2013-12-25 12:03:45 UTC) #33
commit-bot: I haz the power
Retried try job too often on android_clang_dbg for step(s) slave_steps http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=android_clang_dbg&number=103378
6 years, 12 months ago (2013-12-25 12:35:23 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/haraken@chromium.org/109933006/850002
6 years, 12 months ago (2013-12-25 12:45:23 UTC) #35
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=42727
6 years, 12 months ago (2013-12-25 13:04:25 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/haraken@chromium.org/109933006/850002
6 years, 12 months ago (2013-12-28 05:55:25 UTC) #37
haraken
Given the previous trybot results, the patch set 12 looks safe to land except for ...
6 years, 12 months ago (2013-12-28 05:56:15 UTC) #38
commit-bot: I haz the power
Change committed as 242671
6 years, 12 months ago (2013-12-28 06:04:31 UTC) #39
haraken
Reverted this change because it broke base_unittests in iOS. I need to land https://codereview.chromium.org/105893004/ first.
6 years, 12 months ago (2013-12-28 08:23:34 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/haraken@chromium.org/109933006/1420001
6 years, 11 months ago (2014-01-08 08:44:21 UTC) #41
commit-bot: I haz the power
6 years, 11 months ago (2014-01-08 12:17:06 UTC) #42
Message was sent while issue was closed.
Change committed as 243528

Powered by Google App Engine
This is Rietveld 408576698