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

Issue 877993003: Pass FROM_HERE to ObserverListThreadSafe::Notify to improve profile. (Closed)

Created:
5 years, 10 months ago by Reilly Grant (use Gerrit)
Modified:
5 years, 10 months ago
CC:
chromium-reviews, felt, tzik, gavinp+memory_chromium.org, sievers+watch_chromium.org, kinuko+watch, extensions-reviews_chromium.org, cbentzel+watch_chromium.org, chromoting-reviews_chromium.org, jam, jbauman+watch_chromium.org, darin-cc_chromium.org, chromium-apps-reviews_chromium.org, erikwright+watch_chromium.org, mlamouri+watch-content_chromium.org, jsbell+serviceworker_chromium.org, nhiroki, feature-media-reviews_chromium.org, asvitkine+watch_chromium.org, kalyank, piman+watch_chromium.org, gcasto+watchlist_chromium.org, cc-bugs_chromium.org, mkwst+watchlist-passwords_chromium.org, michaeln, Ian Vollick, serviceworker-reviews, kinuko+serviceworker, mkwst+moarreviews-renderer_chromium.org, horo+watch_chromium.org, danakj+watch_chromium.org, kinuko+fileapi
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Pass FROM_HERE to ObserverListThreadSafe::Notify to improve profile. ObserverListThreadSafe::Notify is the 4th most called function in a profile generated on my host. This is because all tasks posted from it are stamped with this callsite, providing very little information. This patch forces callers to pass in their own tracking data so that the profile will differentiate between each observer list holder. TBR=garykac@chromium.org,rdsmith@chromium.org,stuartmorgan@chromium.org,gbillock@chromium.org Committed: https://crrev.com/9a77a7236aeab865e82dcb0baef21ab6e039cd2b Cr-Commit-Position: refs/heads/master@{#315372}

Patch Set 1 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+101 lines, -94 lines) Patch
M base/android/application_status_listener.cc View 1 chunk +2 lines, -1 line 0 comments Download
M base/memory/memory_pressure_listener.cc View 1 chunk +1 line, -1 line 0 comments Download
M base/metrics/field_trial.cc View 1 chunk +2 lines, -3 lines 0 comments Download
M base/observer_list_threadsafe.h View 2 chunks +4 lines, -2 lines 0 comments Download
M base/observer_list_unittest.cc View 12 chunks +13 lines, -13 lines 0 comments Download
M base/power_monitor/power_monitor.cc View 1 chunk +4 lines, -3 lines 0 comments Download
M base/system_monitor/system_monitor.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/activity_log/activity_log.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/api/storage/policy_value_store.cc View 1 chunk +3 lines, -5 lines 0 comments Download
M chrome/browser/extensions/api/storage/syncable_settings_storage.cc View 1 chunk +3 lines, -5 lines 0 comments Download
M chrome/browser/sync_file_system/local/canned_syncable_file_system.cc View 1 chunk +4 lines, -4 lines 0 comments Download
M components/password_manager/core/browser/password_store.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/storage_monitor/storage_monitor.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/gpu/gpu_data_manager_impl_private.cc View 4 chunks +5 lines, -4 lines 0 comments Download
M content/browser/service_worker/service_worker_context_core.cc View 5 chunks +20 lines, -19 lines 0 comments Download
M content/browser/service_worker/service_worker_context_wrapper.cc View 1 chunk +2 lines, -1 line 0 comments Download
M content/renderer/p2p/socket_dispatcher.cc View 1 chunk +1 line, -1 line 0 comments Download
M extensions/browser/api/storage/storage_api.cc View 1 chunk +3 lines, -5 lines 0 comments Download
M media/base/user_input_monitor_linux.cc View 1 chunk +2 lines, -1 line 0 comments Download
M media/base/user_input_monitor_win.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/android/network_change_notifier_delegate_android.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M net/base/network_change_notifier.cc View 1 chunk +7 lines, -5 lines 0 comments Download
M net/cert/cert_database.cc View 1 chunk +6 lines, -4 lines 0 comments Download
M net/cert/cert_database_android.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/cert/nss_cert_database.cc View 1 chunk +6 lines, -4 lines 0 comments Download
M remoting/host/linux/audio_pipe_reader.cc View 1 chunk +1 line, -1 line 0 comments Download
M ui/compositor/compositor_vsync_manager.cc View 1 chunk +2 lines, -3 lines 0 comments Download

Messages

Total messages: 24 (8 generated)
Reilly Grant (use Gerrit)
Nico, please review this change to the ObserverListThreadSafe::Notify interface. I'm still running try jobs, there ...
5 years, 10 months ago (2015-02-06 23:26:04 UTC) #4
Nico
If this is the 4th-hottest function, are there any performance concerns about creating tracked_objects::Location object ...
5 years, 10 months ago (2015-02-07 00:28:03 UTC) #5
Reilly Grant (use Gerrit)
On 2015/02/07 00:28:03, Nico wrote: > If this is the 4th-hottest function, are there any ...
5 years, 10 months ago (2015-02-07 01:01:34 UTC) #6
Nico
lgtm On 2015/02/07 01:01:34, reillyg wrote: > On 2015/02/07 00:28:03, Nico wrote: > > If ...
5 years, 10 months ago (2015-02-07 02:03:20 UTC) #7
Reilly Grant (use Gerrit)
On 2015/02/07 02:03:20, Nico wrote: > lgtm > > On 2015/02/07 01:01:34, reillyg wrote: > ...
5 years, 10 months ago (2015-02-07 02:08:21 UTC) #8
Reilly Grant (use Gerrit)
Adding nasko@ for content/, jrummel@ for media/ and rdsmith@ for net/.
5 years, 10 months ago (2015-02-07 02:32:08 UTC) #11
Reilly Grant (use Gerrit)
Adding stuartmorgan@ for components/password_manager/, gbillock@ for components/storage_monitor, kalman@ for extensions/ and garykac@ for remoting/.
5 years, 10 months ago (2015-02-07 02:37:22 UTC) #14
jrummell
media/ lgtm
5 years, 10 months ago (2015-02-09 18:23:10 UTC) #15
Nico
(i think this is mechanical enough that you can tbr other owners)
5 years, 10 months ago (2015-02-09 18:26:14 UTC) #16
nasko
content/ LGTM
5 years, 10 months ago (2015-02-09 18:27:07 UTC) #17
not at google - send to devlin
tbr works for me, but lgtm anyway
5 years, 10 months ago (2015-02-09 18:34:20 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/877993003/20001
5 years, 10 months ago (2015-02-09 18:37:49 UTC) #20
commit-bot: I haz the power
Committed patchset #1 (id:20001)
5 years, 10 months ago (2015-02-09 20:18:41 UTC) #21
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/9a77a7236aeab865e82dcb0baef21ab6e039cd2b Cr-Commit-Position: refs/heads/master@{#315372}
5 years, 10 months ago (2015-02-09 20:19:35 UTC) #22
Randy Smith (Not in Mondays)
net/ LGTM.
5 years, 10 months ago (2015-02-16 14:21:20 UTC) #23
stuartmorgan
5 years, 10 months ago (2015-02-18 16:56:41 UTC) #24
Message was sent while issue was closed.
password_manager LGTM

Powered by Google App Engine
This is Rietveld 408576698