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

Issue 1201063002: Set up the infrastructure for Extension event metrics. (Closed)

Created:
5 years, 6 months ago by not at google - send to devlin
Modified:
5 years, 6 months ago
Reviewers:
Devlin, Ilya Sherman
CC:
chromium-reviews, felt, yusukes+watch_chromium.org, tzik, nektar+watch_chromium.org, rginda+watch_chromium.org, noyau+watch_chromium.org, dmazzoni+watch_chromium.org, sadrul, stevenjb+watch_chromium.org, miu+watch_chromium.org, extensions-reviews_chromium.org, Matt Giuca, tommycli, aboxhall+watch_chromium.org, nona+watch_chromium.org, je_julie, rlp+watch_chromium.org, chromium-apps-reviews_chromium.org, tapted, mlamouri+watch-notifications_chromium.org, yuzo+watch_chromium.org, nhiroki, oshima+watch_chromium.org, kalyank, plundblad+watch_chromium.org, Lei Zhang, tfarina, shuchen+watch_chromium.org, asvitkine+watch_chromium.org, benjhayden+dwatch_chromium.org, dtseng+watch_chromium.org, peter+watch_chromium.org, kinuko+fileapi, davemoore+watch_chromium.org, rpaquay
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Set up the infrastructure for Extension event metrics. This patch adds extension_event_histogram_value.h with a value for every Extension event (scraped using the Docserver), changes the Event struct constructor to require one, then makes every caller pass in UNKNOWN. These are steps 1 and 2 in the bug. Next I will be submitting bite-sized changes to use the real histogram values. BUG=503402 R=rdevlin.cronin@chromium.org, isherman@chromium.org TBR=achuith@chromium.org, rkc@chromium.org, dewittj@chromium.org, tommi@chromium.org, msw@chromium.org Committed: https://crrev.com/f1b4d784ec2cf933cd261b3f3371b131ead9e567 Cr-Commit-Position: refs/heads/master@{#336003}

Patch Set 1 #

Total comments: 9

Patch Set 2 : rebase #

Patch Set 3 : revert test JS change #

Total comments: 4

Patch Set 4 : comments #

Patch Set 5 : update histograms #

Patch Set 6 : add back magic markers #

Patch Set 7 : disable presubmit for now #

Patch Set 8 : rebaaaaase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1096 lines, -300 lines) Patch
M chrome/browser/apps/ephemeral_app_browsertest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/accessibility/accessibility_manager.cc View 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/extensions/dictionary_event_router.cc View 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/extensions/file_manager/event_router.cc View 1 2 3 4 5 6 7 2 chunks +5 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/extensions/input_method_event_router.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chromeos/extensions/media_player_event_router.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/extensions/wallpaper_api.cc View 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/file_manager/file_browser_handlers.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/operations/operation.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/service.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chromeos/launcher_search_provider/service.cc View 1 2 3 4 5 6 7 3 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/printer_detector/printer_detector.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/copresence/chrome_whispernet_client.cc View 3 chunks +6 lines, -9 lines 0 comments Download
M chrome/browser/extensions/api/activity_log_private/activity_log_private_api.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/extensions/api/audio_modem/audio_modem_api.cc View 1 chunk +5 lines, -4 lines 0 comments Download
M chrome/browser/extensions/api/autofill_private/autofill_private_event_router.cc View 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/extensions/api/automation_internal/automation_event_router.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/api/automation_internal/automation_util.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/api/bookmark_manager_private/bookmark_manager_private_api.cc View 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/extensions/api/bookmarks/bookmarks_api.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/api/braille_display_private/braille_display_private_api.cc View 2 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/extensions/api/cookies/cookies_api.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/api/copresence/copresence_api.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/api/debugger/debugger_api.cc View 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/extensions/api/developer_private/developer_private_api.cc View 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/extensions/api/dial/dial_api.cc View 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/extensions/api/downloads/downloads_api.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/api/downloads/downloads_api_browsertest.cc View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/extensions/api/experience_sampling_private/experience_sampling.cc View 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/extensions/api/extension_action/extension_action_api.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/api/feedback_private/feedback_private_api.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/api/file_system/file_system_api.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/extensions/api/gcd_private/gcd_private_api.cc View 1 chunk +5 lines, -3 lines 0 comments Download
M chrome/browser/extensions/api/gcm/gcm_api.cc View 2 chunks +9 lines, -12 lines 0 comments Download
M chrome/browser/extensions/api/history/history_api.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/api/hotword_private/hotword_private_api.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/api/identity/identity_api.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/extensions/api/identity/web_auth_flow.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/api/image_writer_private/operation_manager.cc View 3 chunks +9 lines, -6 lines 0 comments Download
M chrome/browser/extensions/api/input_ime/input_ime_api.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/api/location/location_manager.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/api/log_private/log_private_api_chromeos.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/extensions/api/mdns/mdns_api.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/api/media_galleries/media_galleries_api.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/api/notification_provider/notification_provider_api.cc View 3 chunks +6 lines, -3 lines 0 comments Download
M chrome/browser/extensions/api/notifications/notifications_api.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/api/omnibox/omnibox_api.cc View 4 chunks +10 lines, -10 lines 0 comments Download
M chrome/browser/extensions/api/passwords_private/passwords_private_event_router.cc View 3 chunks +6 lines, -3 lines 0 comments Download
M chrome/browser/extensions/api/preference/chrome_direct_setting_api.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/api/preference/preference_helpers.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/api/processes/processes_api.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/api/screenlock_private/screenlock_private_api.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/extensions/api/search_engines_private/search_engines_private_event_router.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/extensions/api/sessions/sessions_api.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/api/settings_private/settings_private_event_router.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/api/signed_in_devices/signed_in_devices_manager.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/api/streams_private/streams_private_api.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/extensions/api/streams_private/streams_private_apitest.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/api/sync_file_system/extension_sync_event_observer.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/api/system_indicator/system_indicator_manager.cc View 1 chunk +3 lines, -4 lines 0 comments Download
M chrome/browser/extensions/api/tab_capture/tab_capture_registry.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/api/tabs/tabs_event_router.cc View 3 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/extensions/api/tabs/windows_event_router.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/extensions/api/terminal/terminal_private_api.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/extensions/api/web_navigation/web_navigation_api_helpers.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/api/webrtc_audio_private/webrtc_audio_private_api.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/event_router_forwarder.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_keybinding_registry.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_messages_apitest.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_webui_apitest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/menu_manager.cc View 2 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/extensions/permissions_updater.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/notifications/desktop_notification_service.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/notifications/message_center_settings_controller.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/signin/easy_unlock_app_manager.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/signin/easy_unlock_service_regular.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/speech/extension_api/tts_engine_extension_api.cc View 4 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/speech/extension_api/tts_extension_api.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/app_list/launcher_page_event_dispatcher.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/app_list/search/people/people_result.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/ash/ash_keyboard_controller_proxy.cc View 2 chunks +2 lines, -0 lines 0 comments Download
M extensions/browser/OWNERS View 1 chunk +5 lines, -0 lines 0 comments Download
M extensions/browser/PRESUBMIT.py View 1 2 3 4 5 6 2 chunks +15 lines, -4 lines 0 comments Download
M extensions/browser/api/alarms/alarm_manager.cc View 1 chunk +1 line, -1 line 0 comments Download
M extensions/browser/api/app_runtime/app_runtime_api.cc View 3 chunks +6 lines, -6 lines 0 comments Download
M extensions/browser/api/audio/audio_api.cc View 4 chunks +9 lines, -9 lines 0 comments Download
M extensions/browser/api/bluetooth/bluetooth_api_pairing_delegate.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M extensions/browser/api/bluetooth/bluetooth_event_router.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M extensions/browser/api/bluetooth/bluetooth_private_apitest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M extensions/browser/api/bluetooth_low_energy/bluetooth_low_energy_event_router.cc View 3 chunks +6 lines, -5 lines 0 comments Download
M extensions/browser/api/bluetooth_socket/bluetooth_socket_event_dispatcher.cc View 4 chunks +9 lines, -7 lines 0 comments Download
M extensions/browser/api/cast_channel/cast_channel_api.cc View 2 chunks +4 lines, -2 lines 0 comments Download
M extensions/browser/api/hid/hid_device_manager.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M extensions/browser/api/idle/idle_manager.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M extensions/browser/api/management/management_api.cc View 1 chunk +2 lines, -1 line 0 comments Download
M extensions/browser/api/networking_config/networking_config_service.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M extensions/browser/api/networking_private/networking_private_event_router_chromeos.cc View 4 chunks +6 lines, -2 lines 0 comments Download
M extensions/browser/api/networking_private/networking_private_event_router_nonchromeos.cc View 2 chunks +2 lines, -0 lines 0 comments Download
M extensions/browser/api/printer_provider/printer_provider_api.cc View 4 chunks +7 lines, -4 lines 0 comments Download
M extensions/browser/api/runtime/runtime_api.cc View 6 chunks +12 lines, -10 lines 0 comments Download
M extensions/browser/api/serial/serial_event_dispatcher.cc View 2 chunks +4 lines, -2 lines 0 comments Download
M extensions/browser/api/sockets_tcp/tcp_socket_event_dispatcher.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M extensions/browser/api/sockets_tcp_server/tcp_server_socket_event_dispatcher.cc View 2 chunks +5 lines, -3 lines 0 comments Download
M extensions/browser/api/sockets_udp/udp_socket_event_dispatcher.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M extensions/browser/api/storage/storage_frontend.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M extensions/browser/api/usb/usb_event_router.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M extensions/browser/api/vpn_provider/vpn_service.cc View 1 chunk +2 lines, -1 line 0 comments Download
M extensions/browser/api/web_request/web_request_api.cc View 1 chunk +2 lines, -3 lines 0 comments Download
M extensions/browser/event_listener_map_unittest.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M extensions/browser/event_router.h View 3 chunks +12 lines, -3 lines 0 comments Download
M extensions/browser/event_router.cc View 2 chunks +14 lines, -10 lines 0 comments Download
A extensions/browser/extension_event_histogram_value.h View 1 2 3 4 5 1 chunk +353 lines, -0 lines 0 comments Download
M extensions/browser/extension_function_histogram_value.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M extensions/shell/browser/shell_extensions_browser_client.cc View 1 chunk +1 line, -1 line 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 1 chunk +333 lines, -0 lines 0 comments Download
D tools/metrics/histograms/update_extension_functions.py View 1 chunk +0 lines, -26 lines 0 comments Download
A tools/metrics/histograms/update_extension_histograms.py View 1 2 3 1 chunk +32 lines, -0 lines 0 comments Download

Messages

Total messages: 35 (15 generated)
not at google - send to devlin
I've marked the interesting places. Everything else is a very dumb script to make every ...
5 years, 6 months ago (2015-06-22 23:42:11 UTC) #1
Devlin
Wow, that's a lot of files. https://codereview.chromium.org/1201063002/diff/1/extensions/browser/event_router.h File extensions/browser/event_router.h (right): https://codereview.chromium.org/1201063002/diff/1/extensions/browser/event_router.h#newcode339 extensions/browser/event_router.h:339: // The identifier ...
5 years, 6 months ago (2015-06-23 17:20:43 UTC) #2
not at google - send to devlin
https://codereview.chromium.org/1201063002/diff/1/extensions/browser/event_router.h File extensions/browser/event_router.h (right): https://codereview.chromium.org/1201063002/diff/1/extensions/browser/event_router.h#newcode339 extensions/browser/event_router.h:339: // The identifier for the event, for histograms. In ...
5 years, 6 months ago (2015-06-23 17:49:10 UTC) #3
Devlin
https://codereview.chromium.org/1201063002/diff/1/extensions/browser/event_router.h File extensions/browser/event_router.h (right): https://codereview.chromium.org/1201063002/diff/1/extensions/browser/event_router.h#newcode339 extensions/browser/event_router.h:339: // The identifier for the event, for histograms. In ...
5 years, 6 months ago (2015-06-23 17:55:56 UTC) #4
not at google - send to devlin
https://codereview.chromium.org/1201063002/diff/1/extensions/browser/event_router.h File extensions/browser/event_router.h (right): https://codereview.chromium.org/1201063002/diff/1/extensions/browser/event_router.h#newcode339 extensions/browser/event_router.h:339: // The identifier for the event, for histograms. In ...
5 years, 6 months ago (2015-06-23 17:59:02 UTC) #5
Devlin
https://codereview.chromium.org/1201063002/diff/1/extensions/browser/event_router.h File extensions/browser/event_router.h (right): https://codereview.chromium.org/1201063002/diff/1/extensions/browser/event_router.h#newcode339 extensions/browser/event_router.h:339: // The identifier for the event, for histograms. In ...
5 years, 6 months ago (2015-06-23 18:07:38 UTC) #6
not at google - send to devlin
On 2015/06/23 18:07:38, Devlin wrote: > https://codereview.chromium.org/1201063002/diff/1/extensions/browser/event_router.h > File extensions/browser/event_router.h (right): > > https://codereview.chromium.org/1201063002/diff/1/extensions/browser/event_router.h#newcode339 > ...
5 years, 6 months ago (2015-06-23 18:12:10 UTC) #7
Devlin
On 2015/06/23 18:12:10, kalman wrote: > Yes you could have an enum of every event ...
5 years, 6 months ago (2015-06-23 19:41:58 UTC) #8
not at google - send to devlin
+isherman for histograms. This is not trivial, but the relevant files for you are the ...
5 years, 6 months ago (2015-06-23 19:44:54 UTC) #10
Ilya Sherman
LGTM % nits, assuming that you're not yet recording this metric. If that's not the ...
5 years, 6 months ago (2015-06-23 21:34:21 UTC) #11
not at google - send to devlin
Thanks. I'm not recording the metric yet, I need to make all call sites not ...
5 years, 6 months ago (2015-06-23 23:27:09 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1201063002/80001
5 years, 6 months ago (2015-06-23 23:57:19 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/73425)
5 years, 6 months ago (2015-06-24 00:16:04 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1201063002/100001
5 years, 6 months ago (2015-06-24 00:31:58 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/73443)
5 years, 6 months ago (2015-06-24 00:46:08 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1201063002/120001
5 years, 6 months ago (2015-06-24 18:38:20 UTC) #28
commit-bot: I haz the power
Exceeded global retry quota
5 years, 6 months ago (2015-06-24 18:43:42 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1201063002/140001
5 years, 6 months ago (2015-06-24 19:46:22 UTC) #33
commit-bot: I haz the power
Committed patchset #8 (id:140001)
5 years, 6 months ago (2015-06-24 21:14:20 UTC) #34
commit-bot: I haz the power
5 years, 6 months ago (2015-06-24 21:15:18 UTC) #35
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/f1b4d784ec2cf933cd261b3f3371b131ead9e567
Cr-Commit-Position: refs/heads/master@{#336003}

Powered by Google App Engine
This is Rietveld 408576698