* available since Chrome 59
(get-field-trial name)
Returns the group name chosen for the named trial, or the empty string if the trial does not exist or is not enabled.
|name| - ?
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [group] where:
|group| - ?
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Returns the group name chosen for the named trial, or the empty string if the trial does not exist or is not enabled. |name| - ? This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is [group] where: |group| - ? In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(get-is-crash-reporting-enabled)
Returns true if the user opted in to sending crash reports.
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [is-enabled] where:
|is-enabled| - ?
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Returns true if the user opted in to sending crash reports. This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is [is-enabled] where: |is-enabled| - ? In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(get-variation-params name)
Returns variation parameters for the named trial if available, or undefined otherwise.
|name| - ?
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [params] where:
|params| - ?
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Returns variation parameters for the named trial if available, or undefined otherwise. |name| - ? This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is [params] where: |params| - ? In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(record-boolean metric-name value)
Records a boolean value to the given metric. Analogous to base::UmaHistogramBoolean().
|metric-name| - ? |value| - ?
Records a boolean value to the given metric. Analogous to base::UmaHistogramBoolean(). |metric-name| - ? |value| - ?
(record-count metric-name value)
Records a value than can range from 1 to 1,000,000.
|metric-name| - ? |value| - ?
Records a value than can range from 1 to 1,000,000. |metric-name| - ? |value| - ?
(record-enumeration-value metric-name value enum-size)
Records an enumeration value to the given metric. Analogous to base::UmaHistogramEnumeration(). Use recordSparseValue for sparse enums or enums not starting at 0.
|metric-name| - ? |value| - ? |enum-size| - ?
Records an enumeration value to the given metric. Analogous to base::UmaHistogramEnumeration(). Use recordSparseValue for sparse enums or enums not starting at 0. |metric-name| - ? |value| - ? |enum-size| - ?
(record-long-time metric-name value)
Records an elapsed time of no more than 1 hour. The sample value is specified in milliseconds.
|metric-name| - ? |value| - ?
Records an elapsed time of no more than 1 hour. The sample value is specified in milliseconds. |metric-name| - ? |value| - ?
(record-medium-count metric-name value)
Records a value than can range from 1 to 10,000.
|metric-name| - ? |value| - ?
Records a value than can range from 1 to 10,000. |metric-name| - ? |value| - ?
(record-medium-time metric-name value)
Records an elapsed time of no more than 3 minutes. The sample value is specified in milliseconds.
|metric-name| - ? |value| - ?
Records an elapsed time of no more than 3 minutes. The sample value is specified in milliseconds. |metric-name| - ? |value| - ?
(record-percentage metric-name value)
Records a percentage value from 1 to 100.
|metric-name| - ? |value| - ?
Records a percentage value from 1 to 100. |metric-name| - ? |value| - ?
(record-small-count metric-name value)
Records a value than can range from 1 to 100.
|metric-name| - ? |value| - ?
Records a value than can range from 1 to 100. |metric-name| - ? |value| - ?
(record-sparse-hashable metric-name value)
Increments the count associated with the hash of |value| in the sparse histogram defined by the |metricName|.
|metric-name| - ? |value| - ?
Increments the count associated with the hash of |value| in the sparse histogram defined by the |metricName|. |metric-name| - ? |value| - ?
(record-sparse-value metric-name value)
Increments the count associated with |value| in the sparse histogram defined by the |metricName|.
|metric-name| - ? |value| - ?
Increments the count associated with |value| in the sparse histogram defined by the |metricName|. |metric-name| - ? |value| - ?
(record-time metric-name value)
Records an elapsed time of no more than 10 seconds. The sample value is specified in milliseconds.
|metric-name| - ? |value| - ?
Records an elapsed time of no more than 10 seconds. The sample value is specified in milliseconds. |metric-name| - ? |value| - ?
(record-user-action name)
Records an action performed by the user.
|name| - ?
Records an action performed by the user. |name| - ?
(record-value metric value)
Adds a value to the given metric.
|metric| - ? |value| - ?
Adds a value to the given metric. |metric| - ? |value| - ?
(tap-all-events chan)
Taps all valid non-deprecated events in chromex.ext.metrics-private namespace.
Taps all valid non-deprecated events in chromex.ext.metrics-private namespace.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close