| /** |
| * @license |
| * Copyright (C) 2021 The Android Open Source Project |
| * |
| * Licensed under the Apache License, Version 2.0 (the "License"); |
| * you may not use this file except in compliance with the License. |
| * You may obtain a copy of the License at |
| * |
| * http =//www.apache.org/licenses/LICENSE-2.0 |
| * |
| * Unless required by applicable law or agreed to in writing, software |
| * distributed under the License is distributed on an "AS IS" BASIS, |
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| * See the License for the specific language governing permissions and |
| * limitations under the License. |
| */ |
| |
| export enum LifeCycle { |
| PLUGIN_LIFE_CYCLE = 'Plugin life cycle', |
| STARTED_AS_USER = 'Started as user', |
| STARTED_AS_GUEST = 'Started as guest', |
| VISIBILILITY_HIDDEN = 'Visibility changed to hidden', |
| VISIBILILITY_VISIBLE = 'Visibility changed to visible', |
| EXTENSION_DETECTED = 'Extension detected', |
| PLUGINS_INSTALLED = 'Plugins installed', |
| PLUGINS_FAILED = 'Some plugins failed to load', |
| USER_REFERRED_FROM = 'User referred from', |
| } |
| |
| export enum Execution { |
| PLUGIN_API = 'plugin-api', |
| REACHABLE_CODE = 'reachable code', |
| METHOD_USED = 'method used', |
| CHECKS_API_NOT_LOGGED_IN = 'checks-api not-logged-in', |
| CHECKS_API_ERROR = 'checks-api error', |
| } |
| |
| export enum Timing { |
| // Time between the navigationStart timing and the ready call of gr-app. |
| APP_STARTED = 'App Started', |
| // Time from navigation to showing first content of change view. |
| CHANGE_DISPLAYED = 'ChangeDisplayed', |
| // Time from navigation to having loaded and presented all change data. |
| CHANGE_LOAD_FULL = 'ChangeFullyLoaded', |
| // Time from navigation to showing content of dashboard. |
| DASHBOARD_DISPLAYED = 'DashboardDisplayed', |
| // Time from navigation to showing full content of diff without highlighting layer |
| DIFF_VIEW_CONTENT_DISPLAYED = 'DiffViewOnlyContent', |
| // Time from navigation to showing viewport (> 120 lines) of diff with highlighting layer. |
| DIFF_VIEW_DISPLAYED = 'DiffViewDisplayed', |
| // Time from navigation to showing full content of diff |
| DIFF_VIEW_LOAD_FULL = 'DiffViewFullyLoaded', |
| // Time from navigation to showing initial content of the file list. |
| FILE_LIST_DISPLAYED = 'FileListDisplayed', |
| // Time from startup to having loaded all plugins. |
| PLUGINS_LOADED = 'PluginsLoaded', |
| // Time from startup to having loaded metrics plugin |
| METRICS_PLUGIN_LOADED = 'MetricsPluginLoaded', |
| // Time from startup to showing first content of change view. |
| STARTUP_CHANGE_DISPLAYED = 'StartupChangeDisplayed', |
| // Time from startup to having loaded and presented all change data. |
| STARTUP_CHANGE_LOAD_FULL = 'StartupChangeFullyLoaded', |
| // Time from startup to showing content of the dashboard. |
| STARTUP_DASHBOARD_DISPLAYED = 'StartupDashboardDisplayed', |
| // Time from startup to showing full content of diff without highlighting layer |
| STARTUP_DIFF_VIEW_CONTENT_DISPLAYED = 'StartupDiffViewOnlyContent', |
| // Time from startup to showing viewport (> 120 lines) of diff with highlighting layer. |
| STARTUP_DIFF_VIEW_DISPLAYED = 'StartupDiffViewDisplayed', |
| // Time from startup to showing full content of diff view. |
| STARTUP_DIFF_VIEW_LOAD_FULL = 'StartupDiffViewFullyLoaded', |
| // Time from startup to showing initial content of the file list. |
| STARTUP_FILE_LIST_DISPLAYED = 'StartupFileListDisplayed', |
| // Time from startup to when the webcomponentsready event is fired. If the event is fired from the webcomponents-lite polyfill, this may be arbitrarily long after the app has started. |
| WEB_COMPONENTS_READY = 'WebComponentsReady', |
| // Time to received all data for change view |
| CHANGE_DATA = 'ChangeDataLoaded', |
| // Time to compute and render first content of change view |
| CHANGE_RELOAD = 'ChangeReloaded', |
| // Time from clicking the [Send] button of the Reply Dialog to the time that the change has reloaded (core data) |
| SEND_REPLY = 'SendReply', |
| // The overall time to render a diff (excluding loading of data). |
| DIFF_TOTAL = 'Diff Total Render', |
| // The time to render the content off a diff (excluding loading of data or syntax highlighting). |
| DIFF_CONTENT = 'Diff Content Render', |
| // Time to compute and render the syntax highlighting of a diff. |
| DIFF_SYNTAX = 'Diff Syntax Render', |
| // Time to render a batch of rows in the file list. If there are very many files, this may be the first batch of rows that are rendered by default. If there are many files and the user clicks [Show More], this may be the batch of additional files that appear as a result. |
| FILE_RENDER = 'FileListRenderTime', |
| // This measures the same interval as FileListRenderTime, but the result is divided by the number of rows in the batch. |
| FILE_RENDER_AVG = 'FileListRenderTimePerFile', |
| // The time to expand some number of diffs in the file list (i.e. render their diffs, including syntax highlighting). |
| FILE_EXPAND_ALL = 'ExpandAllDiffs', |
| // This measures the same interval as ExpandAllDiffs, but the result is divided by the number of diffs expanded. |
| FILE_EXPAND_ALL_AVG = 'ExpandAllPerDiff', |
| } |
| |
| export enum Interaction { |
| TOGGLE_SHOW_ALL_BUTTON = 'toggle show all button', |
| SHOW_TAB = 'show-tab', |
| ATTENTION_SET_CHIP = 'attention-set-chip', |
| SAVE_COMMENT = 'save-comment', |
| COMMENT_SAVED = 'comment-saved', |
| DISCARD_COMMENT = 'discard-comment', |
| COMMENT_DISCARDED = 'comment-discarded', |
| } |