Name Description Size Coverage
Boolean.cpp 2246 -
Boolean.h Set to the specified boolean value. @param aValue the value to set. 2212 -
Common.cpp from private window 1743 -
Common.h Dumps a log message to the Browser Console using the provided level. @param aLogLevel The level to use when displaying the message in the browser console (e.g. nsIScriptError::warningFlag, ...). @param aMsg The text message to print to the console. 858 -
Counter.cpp static 8359 -
Counter.h Increases the counter by `amount`. @param aAmount The amount to increase by. Should be positive. 2484 -
CustomDistribution.cpp virtual 5766 -
CustomDistribution.h Accumulates the provided samples in the metric. @param aSamples The vector holding the samples to be recorded by the metric. 3519 -
Datetime.cpp virtual 4217 -
Datetime.h Set the datetime to the provided value, or the local now. @param amount The date value to set. 2401 -
Denominator.cpp virtual 2016 -
Denominator.h Increases the counter by `amount`. @param aAmount The amount to increase by. Should be positive. 2315 -
DistributionData.h Create distribution data from the buckets, counts and sum, as returned by `fog_*_distribution_test_get_value`. 2272 -
DualLabeledCounter.cpp static 2327 -
DualLabeledCounter.h Gets a specific metric for a given key and category. If a set of acceptable labels were specified in the `metrics.yaml` file, and the given label is not in the set, it will be recorded under the special `OTHER_LABEL` label. If a set of acceptable labels was not specified in the `metrics.yaml` file, only the first 16 unique labels will be used. After that, any additional labels will be recorded under the special `OTHER_LABEL` label. This applies to both key labels and category labels. @param aKey - A UTF-8 label of at most 111 bytes of length, otherwise the metric will be recorded under the special `OTHER_LABEL` key and an error will be recorded. @param aCategory - A UTF-8 label of at most 111 bytes of length, otherwise the metric will be recorded under the special `OTHER_LABEL` key and an error will be recorded. 2442 -
Event.cpp virtual 3448 -
Event.h Represents the recorded data for a single event 6201 -
GIFFTFwd.h mozilla_glean_GIFFTFwd_h 1826 -
Labeled.cpp 7822 -
Labeled.h 13174 -
MemoryDistribution.cpp virtual 3416 -
MemoryDistribution.h Accumulates the provided sample in the metric. @param aSample The sample to be recorded by the metric. The sample is assumed to be in the confgured memory unit of the metric. Notes: Values bigger than 1 Terabyte (2^40 bytes) are truncated and an InvalidValue error is recorded. 2767 -
Numerator.cpp virtual 2361 -
Numerator.h Increases the numerator by `amount`. @param aAmount The amount to increase by. Should be positive. 2552 -
Object.cpp virtual 2524 -
Object.h Test-only API** Gets the currently stored object as a JSON-encoded string. This function will attempt to await the last parent-process task (if any) writing to the the metric's storage engine before returning a value. This function will not wait for data from child processes. This doesn't clear the stored value. Parent process only. Panics in child processes. @param aPingName The (optional) name of the ping to retrieve the metric for. Defaults to the first value in `send_in_pings`. @return value of the stored metric, or Nothing() if there is no value. 2907 -
Ping.cpp 7613 -
Ping.h Collect and submit the ping for eventual upload. This will collect all stored data to be included in the ping. Data with lifetime `ping` will then be reset. If the ping is configured with `send_if_empty = false` and the ping currently contains no content, it will not be queued for upload. If the ping is configured with `send_if_empty = true` it will be queued for upload even if empty. Pings always contain the `ping_info` and `client_info` sections. See [ping sections](https://mozilla.github.io/glean/book/user/pings/index.html#ping-sections) for details. @param aReason - Optional. The reason the ping is being submitted. Must match one of the configured `reason_codes`. 3748 -
Quantity.cpp virtual 2515 -
Quantity.h Set to the specified value. @param aValue the value to set. 2164 -
Rate.cpp virtual 2637 -
Rate.h Increases the numerator by `amount`. @param aAmount The amount to increase by. Should be positive. 2617 -
String.cpp virtual 2161 -
String.h Set to the specified value. Truncates the value if it is longer than 100 bytes and logs an error. See https://mozilla.github.io/glean/book/user/metrics/string.html#limits. @param aValue The string to set the metric to. 2397 -
StringList.cpp virtual 2697 -
StringList.h Adds a new string to the list. Truncates the value if it is longer than 50 bytes and logs an error. @param aValue The string to add. 2823 -
Text.cpp virtual 1876 -
Text.h 1442 -
Timespan.cpp 6371 -
Timespan.h Start tracking time for the provided metric. This records an error if it’s already tracking time (i.e. start was already called with no corresponding [stop]): in that case the original start time will be preserved. 3188 -
TimingDistribution.cpp 17799 -
TimingDistribution.h Starts tracking time for the provided metric. @returns A unique TimerId for the new timer 4652 -
Url.cpp virtual 2024 -
Url.h Set to the specified value. @param aValue The stringified Url to set the metric to. 2214 -
Uuid.cpp virtual 2345 -
Uuid.h Sets to the specified value. @param aValue The UUID to set the metric to. 2352 -