Class: Selenium::WebDriver::BiDi::Protocol::MozProfiler Private
- Defined in:
- lib/selenium/webdriver/bidi/protocol/moz_profiler.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Defined Under Namespace
Classes: StartParameters
Constant Summary collapse
- IsActiveResult =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
Serialization::Record.define(active: {wire_key: 'active', primitive: 'boolean'})
- StopParameters =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
Serialization::Record.define( discard: {wire_key: 'discard', required: false, primitive: 'boolean'} )
- StopResult =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
Serialization::Record.define(path: {wire_key: 'path', nullable: true, primitive: 'string'})
Instance Method Summary collapse
- #is_active ⇒ Object private
- #start(active_context: Serialization::UNSET, preset: Serialization::UNSET, entries: Serialization::UNSET, interval: Serialization::UNSET, features: Serialization::UNSET, threads: Serialization::UNSET) ⇒ Object private
- #stop(discard: Serialization::UNSET) ⇒ Object private
Methods inherited from Domain
Constructor Details
This class inherits a constructor from Selenium::WebDriver::BiDi::Protocol::Domain
Instance Method Details
#is_active ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
73 74 75 |
# File 'lib/selenium/webdriver/bidi/protocol/moz_profiler.rb', line 73 def is_active execute(cmd: 'moz:profiler.isActive', result: MozProfiler::IsActiveResult) end |
#start(active_context: Serialization::UNSET, preset: Serialization::UNSET, entries: Serialization::UNSET, interval: Serialization::UNSET, features: Serialization::UNSET, threads: Serialization::UNSET) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 |
# File 'lib/selenium/webdriver/bidi/protocol/moz_profiler.rb', line 79 def start( active_context: Serialization::UNSET, preset: Serialization::UNSET, entries: Serialization::UNSET, interval: Serialization::UNSET, features: Serialization::UNSET, threads: Serialization::UNSET ) params = StartParameters.build( active_context: active_context, preset: preset, entries: entries, interval: interval, features: features, threads: threads ) execute(cmd: 'moz:profiler.start', params: params) end |
#stop(discard: Serialization::UNSET) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
100 101 102 103 |
# File 'lib/selenium/webdriver/bidi/protocol/moz_profiler.rb', line 100 def stop(discard: Serialization::UNSET) params = StopParameters.new(discard: discard) execute(cmd: 'moz:profiler.stop', params: params, result: MozProfiler::StopResult) end |