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

Issue 882673002: Move tracing namespace from base::debug to base::trace_event. (Closed)

Created:
5 years, 10 months ago by ssid
Modified:
5 years, 10 months ago
CC:
nduca
Base URL:
https://chromium.googlesource.com/chromium/src.git@move_trace_part1
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Move tracing namespace from base::debug to base::trace_event. After having transitioned all the tracing headers from base/debug/ to base/trace_event, this CL addresses the namespace move. In principle, this CL should only change the namespace of the base/trace_event files but the namespace used by the tracing clients. In order to achieve this, namespace aliases are appended to the trace_event headers, to make it so that clients can still refer to base::debug::TraceFoo, with that being aliased to base::trace_event::TraceFoo. The upcoming CLs will gradually migrate the clients to use the base::trace_event namespace and will remove the ns aliases. Unfortunately, this CL has also to update few tracing clients, in particular the ones having forward declarations. Forward declarations, in fact, cannot be aliased as the compiler sees them before the alias itself. See crrev.com/837303004 and the related bug for motivations and design doc. BUG=451032 TBR=skyostil@chromium.org,jam@chromium.org Committed: https://crrev.com/97c5abba36f5ce473cd996fab74fbf5aa9bb5464 Cr-Commit-Position: refs/heads/master@{#314657}

Patch Set 1 #

Total comments: 26

Patch Set 2 : Adding comments and fixing errors. #

Patch Set 3 : Fixing build issues. #

Patch Set 4 : Fixing win builds. #

Patch Set 5 : Edited formatting #

Total comments: 7

Patch Set 6 : Changed comments. #

Total comments: 1

Patch Set 7 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+395 lines, -145 lines) Patch
M base/trace_event/trace_event.h View 1 2 3 4 5 26 chunks +57 lines, -41 lines 0 comments Download
M base/trace_event/trace_event_android.cc View 1 6 chunks +9 lines, -8 lines 0 comments Download
M base/trace_event/trace_event_argument.h View 1 2 3 4 5 2 chunks +9 lines, -1 line 0 comments Download
M base/trace_event/trace_event_argument.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M base/trace_event/trace_event_argument_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M base/trace_event/trace_event_impl.h View 1 2 3 4 5 3 chunks +21 lines, -4 lines 0 comments Download
M base/trace_event/trace_event_impl.cc View 3 chunks +4 lines, -4 lines 0 comments Download
M base/trace_event/trace_event_impl_constants.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M base/trace_event/trace_event_memory.h View 4 chunks +4 lines, -4 lines 0 comments Download
M base/trace_event/trace_event_memory.cc View 4 chunks +5 lines, -5 lines 0 comments Download
M base/trace_event/trace_event_memory_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M base/trace_event/trace_event_synthetic_delay.h View 3 chunks +4 lines, -4 lines 0 comments Download
M base/trace_event/trace_event_synthetic_delay.cc View 3 chunks +8 lines, -7 lines 0 comments Download
M base/trace_event/trace_event_synthetic_delay_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M base/trace_event/trace_event_system_stats_monitor.h View 3 chunks +3 lines, -3 lines 0 comments Download
M base/trace_event/trace_event_system_stats_monitor.cc View 3 chunks +4 lines, -4 lines 0 comments Download
M base/trace_event/trace_event_system_stats_monitor_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M base/trace_event/trace_event_unittest.cc View 2 chunks +2 lines, -3 lines 0 comments Download
M base/trace_event/trace_event_win.h View 1 2 3 4 5 2 chunks +15 lines, -1 line 0 comments Download
M base/trace_event/trace_event_win.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M base/trace_event/trace_event_win_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M cc/base/math_util.h View 1 2 3 4 5 1 chunk +8 lines, -1 line 0 comments Download
M cc/base/region.h View 1 2 3 4 5 1 chunk +7 lines, -1 line 0 comments Download
M cc/blink/web_layer_impl.h View 1 2 3 4 5 1 chunk +7 lines, -1 line 0 comments Download
M cc/debug/traced_value.h View 1 2 3 4 5 1 chunk +7 lines, -1 line 0 comments Download
M cc/layers/layer.h View 1 2 3 4 5 1 chunk +7 lines, -1 line 0 comments Download
M cc/layers/layer_client.h View 1 2 3 4 5 1 chunk +7 lines, -1 line 0 comments Download
M cc/layers/layer_impl.h View 1 2 3 4 5 6 1 chunk +8 lines, -2 lines 0 comments Download
M cc/output/begin_frame_args.h View 1 2 3 4 5 1 chunk +8 lines, -1 line 0 comments Download
M cc/output/filter_operation.h View 1 2 3 4 5 1 chunk +8 lines, -2 lines 0 comments Download
M cc/output/filter_operations.h View 1 2 3 4 5 1 chunk +8 lines, -2 lines 0 comments Download
M cc/quads/draw_quad.h View 1 2 3 4 5 1 chunk +8 lines, -2 lines 0 comments Download
M cc/quads/render_pass.h View 1 2 3 4 5 1 chunk +8 lines, -2 lines 0 comments Download
M cc/quads/shared_quad_state.h View 1 2 3 4 5 1 chunk +7 lines, -1 line 0 comments Download
M cc/resources/bitmap_tile_task_worker_pool.h View 1 2 3 4 5 1 chunk +7 lines, -1 line 0 comments Download
M cc/resources/one_copy_tile_task_worker_pool.h View 1 2 3 4 5 1 chunk +8 lines, -1 line 0 comments Download
M cc/resources/picture_layer_tiling.h View 1 2 3 4 5 1 chunk +7 lines, -1 line 0 comments Download
M cc/resources/picture_layer_tiling_set.h View 1 2 3 4 5 1 chunk +7 lines, -1 line 0 comments Download
M cc/resources/pixel_buffer_tile_task_worker_pool.h View 1 2 3 4 5 1 chunk +8 lines, -1 line 0 comments Download
M cc/resources/tile_manager.h View 1 2 3 4 5 1 chunk +8 lines, -1 line 0 comments Download
M cc/resources/zero_copy_tile_task_worker_pool.h View 1 2 3 4 5 1 chunk +7 lines, -1 line 0 comments Download
M cc/scheduler/delay_based_time_source.h View 1 2 3 4 5 1 chunk +8 lines, -2 lines 0 comments Download
M cc/scheduler/scheduler.h View 1 2 3 4 5 1 chunk +8 lines, -2 lines 0 comments Download
M cc/scheduler/scheduler_settings.h View 1 2 3 4 5 1 chunk +7 lines, -1 line 0 comments Download
M cc/scheduler/scheduler_state_machine.h View 1 2 3 4 5 6 1 chunk +9 lines, -2 lines 0 comments Download
M cc/trees/layer_tree_impl.h View 1 2 3 4 5 1 chunk +7 lines, -1 line 0 comments Download
M cc/trees/proxy.h View 1 2 3 4 5 1 chunk +8 lines, -2 lines 0 comments Download
M content/browser/browser_main_loop.h View 1 2 3 4 5 1 chunk +8 lines, -1 line 0 comments Download
M content/child/child_thread_impl.h View 1 2 3 4 5 6 1 chunk +7 lines, -1 line 0 comments Download
M content/renderer/scheduler/renderer_scheduler_impl.h View 1 2 3 4 5 6 1 chunk +7 lines, -1 line 0 comments Download
M content/renderer/scheduler/task_queue_manager.h View 1 2 3 4 5 6 1 chunk +8 lines, -1 line 0 comments Download
M content/renderer/scheduler/task_queue_selector.h View 1 2 3 4 5 1 chunk +7 lines, -1 line 0 comments Download

Messages

Total messages: 29 (8 generated)
ssid
PTAL at this change. Sorry for so many CL mails earlier.
5 years, 10 months ago (2015-01-27 13:32:26 UTC) #2
Primiano Tucci (use gerrit)
Almost there, just nits here and there. Please add a "TODO(ssid): this is temporary, to ...
5 years, 10 months ago (2015-01-27 14:34:11 UTC) #3
ssid
Made changes PTAL. https://codereview.chromium.org/882673002/diff/1/base/trace_event/trace_event.h File base/trace_event/trace_event.h (right): https://codereview.chromium.org/882673002/diff/1/base/trace_event/trace_event.h#newcode1597 base/trace_event/trace_event.h:1597: namespace base { On 2015/01/27 14:34:10, ...
5 years, 10 months ago (2015-01-27 15:56:46 UTC) #4
Primiano Tucci (use gerrit)
Good work! thanks. I have just some nits (mostly the format of the TODO message). ...
5 years, 10 months ago (2015-02-03 10:42:37 UTC) #5
ssid
Made changes.PTAL https://codereview.chromium.org/882673002/diff/80001/base/trace_event/trace_event.h File base/trace_event/trace_event.h (right): https://codereview.chromium.org/882673002/diff/80001/base/trace_event/trace_event.h#newcode1597 base/trace_event/trace_event.h:1597: // This is added temporarily. Once the ...
5 years, 10 months ago (2015-02-03 15:08:07 UTC) #6
Primiano Tucci (use gerrit)
LGTM thanks. Adding actual owners. +skyostil for /cc/ +dsinclair for /base/trace_event/
5 years, 10 months ago (2015-02-03 18:21:57 UTC) #8
dsinclair
https://codereview.chromium.org/882673002/diff/100001/cc/scheduler/scheduler.h File cc/scheduler/scheduler.h (right): https://codereview.chromium.org/882673002/diff/100001/cc/scheduler/scheduler.h#newcode34 cc/scheduler/scheduler.h:34: using ::base::trace_event::ConvertableToTraceFormat; Out of curiosity, is it a much ...
5 years, 10 months ago (2015-02-03 18:25:27 UTC) #9
Primiano Tucci (use gerrit)
On 2015/02/03 18:25:27, dsinclair wrote: > https://codereview.chromium.org/882673002/diff/100001/cc/scheduler/scheduler.h > File cc/scheduler/scheduler.h (right): > > https://codereview.chromium.org/882673002/diff/100001/cc/scheduler/scheduler.h#newcode34 > ...
5 years, 10 months ago (2015-02-03 18:37:33 UTC) #10
dsinclair
LGTM. That's a lot, landing is pieces is cool, I wouldn't worry too much about ...
5 years, 10 months ago (2015-02-03 18:40:19 UTC) #11
Primiano Tucci (use gerrit)
TBR-ing skyostil for the mechanical changes in cc/ and scheduler/. I hope you don't mind. ...
5 years, 10 months ago (2015-02-04 18:23:50 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/882673002/100001
5 years, 10 months ago (2015-02-04 18:24:51 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/40426)
5 years, 10 months ago (2015-02-04 18:32:16 UTC) #18
Sami
On 2015/02/04 18:23:50, Primiano Tucci wrote: > TBR-ing skyostil for the mechanical changes in cc/ ...
5 years, 10 months ago (2015-02-04 18:57:08 UTC) #19
Sami
Looks like you need to TBR= someone owning content/.
5 years, 10 months ago (2015-02-04 18:58:13 UTC) #20
Primiano Tucci (use gerrit)
ssid@, it seems like this needs a rebase. Can you please rebase it (wait for ...
5 years, 10 months ago (2015-02-04 19:59:21 UTC) #21
Primiano Tucci (use gerrit)
TBR-ing jam for 7 line mechanical diff in content/browser/browser_main_loop.h and content/child/child_thread_impl.h
5 years, 10 months ago (2015-02-04 22:15:07 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/882673002/120001
5 years, 10 months ago (2015-02-04 22:16:23 UTC) #25
commit-bot: I haz the power
Committed patchset #7 (id:120001)
5 years, 10 months ago (2015-02-04 22:20:57 UTC) #26
commit-bot: I haz the power
Patchset 7 (id:??) landed as https://crrev.com/97c5abba36f5ce473cd996fab74fbf5aa9bb5464 Cr-Commit-Position: refs/heads/master@{#314657}
5 years, 10 months ago (2015-02-04 22:21:59 UTC) #27
zhaoqin1
A revert of this CL (patchset #7 id:120001) has been created in https://codereview.chromium.org/904573002/ by zhaoqin@chromium.org. ...
5 years, 10 months ago (2015-02-05 03:49:53 UTC) #28
Primiano Tucci (use gerrit)
5 years, 10 months ago (2015-02-05 17:40:24 UTC) #29
Message was sent while issue was closed.
On 2015/02/05 03:49:53, zhaoqin1 wrote:
> A revert of this CL (patchset #7 id:120001) has been created in
> https://codereview.chromium.org/904573002/ by mailto:zhaoqin@chromium.org.
> 
> The reason for reverting is: broken Memory.FYI TSan bot.
> crbug.com/455530.

Relanded (with tsan suppressions) in crrev.com/869043008

Powered by Google App Engine
This is Rietveld 408576698