blob: 57aad1c7e2b889865d44718eae388d6b5c314255 [file] [log] [blame]
"""Provides names for Cobalt CVals that are used by webdriver-related tests."""
# Copyright 2018 The Cobalt Authors. All Rights Reserved.
#
# 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.
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
def count_dom_active_java_script_events():
return 'Count.DOM.ActiveJavaScriptEvents'
def count_dom_html_element():
return 'Count.MainWebModule.DOM.HtmlElement'
def count_dom_html_element_document():
return 'Count.MainWebModule.DOM.HtmlElement.Document'
def count_dom_html_script_element_execute():
return 'Count.MainWebModule.DOM.HtmlScriptElement.Execute'
def count_layout_boxes():
return 'Count.MainWebModule.Layout.Box'
def count_font_cache_resource_loaded():
return 'Count.MainWebModule.RemoteTypefaceCache.Resource.Loaded'
def count_font_cache_resource_requested():
return 'Count.MainWebModule.RemoteTypefaceCache.Resource.Requested'
def count_image_cache_resource_loading():
return 'Count.MainWebModule.ImageCache.Resource.Loading'
def count_image_cache_resource_requested():
return 'Count.MainWebModule.ImageCache.Resource.Requested'
def count_image_cache_resource_loaded():
return 'Count.MainWebModule.ImageCache.Resource.Loaded'
def count_rasterize_new_render_tree():
return 'Count.Renderer.Rasterize.NewRenderTree'
def count_version_compatibility_violation():
return 'Count.VersionCompatibilityViolation'
def event_duration_dom_video_start_delay():
return 'Event.Duration.MainWebModule.DOM.VideoStartDelay'
def event_is_processing():
return 'Event.MainWebModule.IsProcessing'
def event_value_dictionary(event_type):
return f'Event.MainWebModule.{event_type}.ValueDictionary'
def is_render_tree_generation_pending():
return 'MainWebModule.Layout.IsRenderTreePending'
def is_render_tree_rasterization_pending():
return 'MainWebModule.IsRenderTreeRasterizationPending'
def memory_font_cache_resource_loaded():
return 'Memory.MainWebModule.RemoteTypefaceCache.Resource.Loaded'
def memory_image_cache_resource_loaded():
return 'Memory.MainWebModule.ImageCache.Resource.Loaded'
def memory_dom_html_script_element_execute():
return 'Memory.MainWebModule.DOM.HtmlScriptElement.Execute'
def rasterize_animations_entry_list():
return 'Renderer.Rasterize.Animations.EntryList'
def rasterize_animations_interval_entry_list():
return 'Renderer.Rasterize.AnimationsInterval.EntryList'
def renderer_has_active_animations():
return 'Renderer.HasActiveAnimations'
def time_browser_navigate():
return 'Time.Browser.Navigate'
def time_browser_on_load_event():
return 'Time.Browser.OnLoadEvent'
def time_cobalt_start():
return 'Time.Cobalt.Start'
def total_font_request_time():
return 'Time.MainWebModule.DOM.FontCache.TotalFontRequestTime'
def time_dom_html_script_element_execute():
return 'Time.MainWebModule.DOM.HtmlScriptElement.Execute'
def time_rasterize_animations_start():
return 'Time.Renderer.Rasterize.Animations.Start'
def time_rasterize_animations_end():
return 'Time.Renderer.Rasterize.Animations.End'
def time_rasterize_new_render_tree():
return 'Time.Renderer.Rasterize.NewRenderTree'