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

Issue 2623263005: Tag some of Mojo heap allocations for the heap profiler. (Closed)

Created:
3 years, 11 months ago by Jay Civelli
Modified:
3 years, 11 months ago
CC:
Aaron Boodman, abarth-chromium, apacible+watch_chromium.org, chromium-reviews, chromoting-reviews_chromium.org, darin (slow to review), darin-cc_chromium.org, erickung+watch_chromium.org, feature-media-reviews_chromium.org, jam, loading-reviews_chromium.org, miu+watch_chromium.org, mmenke, qsr+mojo_chromium.org, Randy Smith (Not in Mondays), viettrungluu+watch_chromium.org, xjz+watch_chromium.org, yzshen+watch_chromium.org, DmitrySkiba
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Tag some of Mojo heap allocations for the heap profiler. First step in tagging heap allocations for Mojo as to provide context for the heap profiler. Allocations done by mojo::Watcher are now tagged with the master interface name if available, otherwise with the location where the Watcher was allocated. Non Mojo IPCs are tagged as "IPC Channel" at this point. BUG=676682 TBR=sergeyu Review-Url: https://codereview.chromium.org/2623263005 Cr-Commit-Position: refs/heads/master@{#446435} Committed: https://chromium.googlesource.com/chromium/src/+/2207af1a2e5f829ea98198d87802872781df60b8

Patch Set 1 #

Patch Set 2 : Minor clean-up. #

Total comments: 8

Patch Set 3 : Addressed comments + fixed build. #

Total comments: 2

Patch Set 4 : Minor comment changes. #

Patch Set 5 : Fix iOS build. #

Patch Set 6 : Synced #

Unified diffs Side-by-side diffs Delta from patch set Stats (+86 lines, -31 lines) Patch
M chrome/browser/media/cast_remoting_sender.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/loader/mojo_async_resource_handler.cc View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M content/child/url_response_body_consumer.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M content/child/web_data_consumer_handle_impl.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M ios/web/webui/mojo_facade.h View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
M ios/web/webui/mojo_facade.mm View 1 2 3 4 2 chunks +6 lines, -3 lines 0 comments Download
M ipc/ipc_mojo_bootstrap.cc View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M ipc/ipc_sync_channel.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M media/mojo/common/mojo_decoder_buffer_converter.cc View 1 2 2 chunks +6 lines, -2 lines 0 comments Download
M media/remoting/demuxer_stream_adapter.cc View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M mojo/android/system/watcher_impl.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M mojo/common/data_pipe_drainer.cc View 1 chunk +4 lines, -1 line 0 comments Download
M mojo/edk/js/drain_data.cc View 1 chunk +3 lines, -1 line 0 comments Download
M mojo/edk/js/waiting_callback.cc View 1 chunk +1 line, -0 lines 0 comments Download
M mojo/edk/system/data_pipe_unittest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M mojo/edk/system/multiprocess_message_pipe_unittest.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M mojo/public/cpp/bindings/connector.h View 1 2 2 chunks +8 lines, -0 lines 0 comments Download
M mojo/public/cpp/bindings/lib/connector.cc View 1 2 2 chunks +9 lines, -1 line 0 comments Download
M mojo/public/cpp/bindings/lib/multiplex_router.h View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M mojo/public/cpp/bindings/lib/multiplex_router.cc View 1 2 3 4 5 1 chunk +5 lines, -3 lines 0 comments Download
M mojo/public/cpp/system/tests/watcher_unittest.cc View 1 2 7 chunks +7 lines, -7 lines 0 comments Download
M mojo/public/cpp/system/watcher.h View 1 2 3 3 chunks +13 lines, -2 lines 0 comments Download
M mojo/public/cpp/system/watcher.cc View 1 2 3 chunks +8 lines, -2 lines 0 comments Download

Messages

Total messages: 51 (33 generated)
Jay Civelli
3 years, 11 months ago (2017-01-12 20:14:16 UTC) #3
Ken Rockot(use gerrit already)
lgtm https://codereview.chromium.org/2623263005/diff/20001/mojo/public/cpp/bindings/connector.h File mojo/public/cpp/bindings/connector.h (right): https://codereview.chromium.org/2623263005/diff/20001/mojo/public/cpp/bindings/connector.h#newcode211 mojo/public/cpp/bindings/connector.h:211: // The tag to be used to track ...
3 years, 11 months ago (2017-01-12 21:05:22 UTC) #9
Ken Rockot(use gerrit already)
(don't forget to update the watcher unittests!)
3 years, 11 months ago (2017-01-12 21:05:36 UTC) #10
ssid
Thanks for working on this. lgtm % 1 comment. https://codereview.chromium.org/2623263005/diff/20001/mojo/public/cpp/system/watcher.cc File mojo/public/cpp/system/watcher.cc (right): https://codereview.chromium.org/2623263005/diff/20001/mojo/public/cpp/system/watcher.cc#newcode20 mojo/public/cpp/system/watcher.cc:20: ...
3 years, 11 months ago (2017-01-12 21:50:05 UTC) #11
ssid
Missed this issue in last comment. https://codereview.chromium.org/2623263005/diff/20001/mojo/public/cpp/bindings/connector.h File mojo/public/cpp/bindings/connector.h (right): https://codereview.chromium.org/2623263005/diff/20001/mojo/public/cpp/bindings/connector.h#newcode153 mojo/public/cpp/bindings/connector.h:153: void SetWatcherHeapProfilerTag(const std::string& ...
3 years, 11 months ago (2017-01-12 21:52:54 UTC) #12
Maria
3 years, 11 months ago (2017-01-12 23:12:35 UTC) #13
Jay Civelli
https://codereview.chromium.org/2623263005/diff/20001/mojo/public/cpp/bindings/connector.h File mojo/public/cpp/bindings/connector.h (right): https://codereview.chromium.org/2623263005/diff/20001/mojo/public/cpp/bindings/connector.h#newcode153 mojo/public/cpp/bindings/connector.h:153: void SetWatcherHeapProfilerTag(const std::string& tag); On 2017/01/12 21:52:54, ssid wrote: ...
3 years, 11 months ago (2017-01-13 01:09:28 UTC) #14
ssid
https://codereview.chromium.org/2623263005/diff/40001/mojo/public/cpp/system/watcher.cc File mojo/public/cpp/system/watcher.cc (right): https://codereview.chromium.org/2623263005/diff/40001/mojo/public/cpp/system/watcher.cc#newcode86 mojo/public/cpp/system/watcher.cc:86: TRACE_HEAP_PROFILER_API_SCOPED_TASK_EXECUTION event(heap_profiler_tag_); On 2017/01/13 01:09:28, Jay Civelli wrote: > ...
3 years, 11 months ago (2017-01-13 01:46:17 UTC) #15
Ken Rockot(use gerrit already)
On Jan 12, 2017 5:46 PM, <ssid@chromium.org> wrote: https://codereview.chromium.org/2623263005/diff/40001/ mojo/public/cpp/system/watcher.cc File mojo/public/cpp/system/watcher.cc (right): https://codereview.chromium.org/2623263005/diff/40001/ mojo/public/cpp/system/watcher.cc#newcode86 ...
3 years, 11 months ago (2017-01-13 01:53:34 UTC) #16
Jay Civelli
Adding owner reviewers: sandersd@ could you look at media/? rohitrao@ could you look at ios/? ...
3 years, 11 months ago (2017-01-17 17:55:29 UTC) #35
Charlie Reis
RS LGTM for content/.
3 years, 11 months ago (2017-01-17 19:35:21 UTC) #36
sandersd (OOO until July 31)
media/ lgtm.
3 years, 11 months ago (2017-01-17 22:02:25 UTC) #37
rohitrao (ping after 24h)
ios lgtm
3 years, 11 months ago (2017-01-18 15:25:50 UTC) #38
Jay Civelli
Adding sergeyu@ from OWNER review of chrome/browser/media
3 years, 11 months ago (2017-01-18 20:22:23 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2623263005/120001
3 years, 11 months ago (2017-01-25 22:48:48 UTC) #44
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/220341)
3 years, 11 months ago (2017-01-26 02:40:57 UTC) #46
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2623263005/120001
3 years, 11 months ago (2017-01-26 18:33:45 UTC) #48
commit-bot: I haz the power
3 years, 11 months ago (2017-01-26 20:46:41 UTC) #51
Message was sent while issue was closed.
Committed patchset #6 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/2207af1a2e5f829ea98198d87802...

Powered by Google App Engine
This is Rietveld 408576698