tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

metrics.yaml (8097B)


      1 # This Source Code Form is subject to the terms of the Mozilla Public
      2 # License, v. 2.0. If a copy of the MPL was not distributed with this
      3 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
      4 
      5 # Adding a new metric? We have docs for that!
      6 # https://firefox-source-docs.mozilla.org/toolkit/components/glean/user/new_definitions_file.html
      7 
      8 ---
      9 $schema: moz://mozilla.org/schemas/glean/metrics/2-0-0
     10 $tags:
     11  - 'Core :: Networking: Cache'
     12 
     13 network:
     14  disk_cache_shutdown_v2:
     15    type: timing_distribution
     16    description: >
     17      Total Time spent (ms) during disk cache shutdown [cache2]
     18 
     19      This metric was generated to correspond to the Legacy Telemetry
     20      exponential histogram NETWORK_DISK_CACHE_SHUTDOWN_V2.
     21    time_unit: millisecond
     22    bugs:
     23      - https://bugzilla.mozilla.org/show_bug.cgi?id=1935420
     24    data_reviews:
     25      - https://bugzilla.mozilla.org/show_bug.cgi?id=1935420
     26    notification_emails:
     27      - necko@mozilla.com
     28    expires: never
     29    telemetry_mirror: NETWORK_DISK_CACHE_SHUTDOWN_V2
     30 
     31  disk_cache2_shutdown_clear_private:
     32    type: timing_distribution
     33    description: >
     34      Time spent (ms) during shutdown deleting disk cache v2 for 'clear private
     35      data' option
     36 
     37      This metric was generated to correspond to the Legacy Telemetry
     38      exponential histogram NETWORK_DISK_CACHE2_SHUTDOWN_CLEAR_PRIVATE.
     39    time_unit: millisecond
     40    bugs:
     41      - https://bugzilla.mozilla.org/show_bug.cgi?id=1935420
     42    data_reviews:
     43      - https://bugzilla.mozilla.org/show_bug.cgi?id=1935420
     44    notification_emails:
     45      - necko@mozilla.com
     46    expires: never
     47    telemetry_mirror: NETWORK_DISK_CACHE2_SHUTDOWN_CLEAR_PRIVATE
     48 
     49  cache_v2_output_stream_status:
     50    type: custom_distribution
     51    description: >
     52      Final status of the CacheFileOutputStream (0=ok, 1=other error, 2=out of
     53      memory, 3=disk full, 4=file corrupted, 5=file not found, 6=binding
     54      aborted)
     55 
     56      This metric was generated to correspond to the Legacy Telemetry enumerated
     57      histogram NETWORK_CACHE_V2_OUTPUT_STREAM_STATUS.
     58    range_min: 0
     59    range_max: 7
     60    bucket_count: 8
     61    histogram_type: linear
     62    bugs:
     63      - https://bugzilla.mozilla.org/show_bug.cgi?id=1935420
     64    data_reviews:
     65      - https://bugzilla.mozilla.org/show_bug.cgi?id=1935420
     66    notification_emails:
     67      - necko@mozilla.com
     68    expires: never
     69    telemetry_mirror: NETWORK_CACHE_V2_OUTPUT_STREAM_STATUS
     70 
     71  cache_v2_input_stream_status:
     72    type: custom_distribution
     73    description: >
     74      Final status of the CacheFileInputStream (0=ok, 1=other error, 2=out of
     75      memory, 3=disk full, 4=file corrupted, 5=file not found, 6=binding
     76      aborted)
     77 
     78      This metric was generated to correspond to the Legacy Telemetry enumerated
     79      histogram NETWORK_CACHE_V2_INPUT_STREAM_STATUS.
     80    range_min: 0
     81    range_max: 7
     82    bucket_count: 8
     83    histogram_type: linear
     84    bugs:
     85      - https://bugzilla.mozilla.org/show_bug.cgi?id=1935420
     86    data_reviews:
     87      - https://bugzilla.mozilla.org/show_bug.cgi?id=1935420
     88    notification_emails:
     89      - necko@mozilla.com
     90    expires: never
     91    telemetry_mirror: NETWORK_CACHE_V2_INPUT_STREAM_STATUS
     92 
     93  cache_size:
     94    type: labeled_memory_distribution
     95    description: >
     96      Cache size in megabytes keyed by cache capacity calculation type. Numbers
     97      are sampled periodically, every time 2GB of data is written to the cache.
     98 
     99      This metric was generated to correspond to the Legacy Telemetry linear
    100      histogram NETWORK_CACHE_SIZE.
    101    memory_unit: megabyte
    102    labels:
    103      - SMARTSIZE
    104      - USERDEFINEDSIZE
    105    bugs:
    106      - https://bugzilla.mozilla.org/show_bug.cgi?id=1548472
    107    data_reviews:
    108      - https://bugzilla.mozilla.org/show_bug.cgi?id=1548472
    109    notification_emails:
    110      - necko@mozilla.com
    111    expires: never
    112    telemetry_mirror: NETWORK_CACHE_SIZE
    113 
    114  cache_entry_count:
    115    type: labeled_custom_distribution
    116    description: >
    117      Number of entries in the cache keyed by cache capacity calculation type.
    118      Numbers are sampled periodically, every time 2GB of data is written to the
    119      cache.
    120 
    121      This metric was generated to correspond to the Legacy Telemetry
    122      exponential histogram NETWORK_CACHE_ENTRY_COUNT.
    123    range_min: 1
    124    range_max: 100000
    125    bucket_count: 100
    126    histogram_type: exponential
    127    unit: cache entries
    128    labels:
    129      - SMARTSIZE
    130      - USERDEFINEDSIZE
    131    bugs:
    132      - https://bugzilla.mozilla.org/show_bug.cgi?id=1548472
    133    data_reviews:
    134      - https://bugzilla.mozilla.org/show_bug.cgi?id=1548472
    135    notification_emails:
    136      - necko@mozilla.com
    137    expires: never
    138    telemetry_mirror: NETWORK_CACHE_ENTRY_COUNT
    139 
    140  cache_size_share:
    141    type: labeled_custom_distribution
    142    description: >
    143      Percentage of the cache size occupied by given content type. Numbers are
    144      sampled periodically, every time 2GB of data is written to the cache.
    145 
    146      This metric was generated to correspond to the Legacy Telemetry enumerated
    147      histogram NETWORK_CACHE_SIZE_SHARE.
    148    range_min: 0
    149    range_max: 99
    150    bucket_count: 100
    151    histogram_type: linear
    152    labels:
    153      - UNKNOWN
    154      - OTHER
    155      - JAVASCRIPT
    156      - IMAGE
    157      - MEDIA
    158      - STYLESHEET
    159      - WASM
    160    bugs:
    161      - https://bugzilla.mozilla.org/show_bug.cgi?id=1548472
    162    data_reviews:
    163      - https://bugzilla.mozilla.org/show_bug.cgi?id=1548472
    164    notification_emails:
    165      - necko@mozilla.com
    166    expires: never
    167    telemetry_mirror: NETWORK_CACHE_SIZE_SHARE
    168 
    169  cache_entry_count_share:
    170    type: labeled_custom_distribution
    171    description: >
    172      Percentage of the entries with the given content type. Numbers are sampled
    173      periodically, every time 2GB of data is written to the cache.
    174 
    175      This metric was generated to correspond to the Legacy Telemetry enumerated
    176      histogram NETWORK_CACHE_ENTRY_COUNT_SHARE.
    177    range_min: 0
    178    range_max: 99
    179    bucket_count: 100
    180    histogram_type: linear
    181    labels:
    182      - UNKNOWN
    183      - OTHER
    184      - JAVASCRIPT
    185      - IMAGE
    186      - MEDIA
    187      - STYLESHEET
    188      - WASM
    189    bugs:
    190      - https://bugzilla.mozilla.org/show_bug.cgi?id=1548472
    191    data_reviews:
    192      - https://bugzilla.mozilla.org/show_bug.cgi?id=1548472
    193    notification_emails:
    194      - necko@mozilla.com
    195    expires: never
    196    telemetry_mirror: NETWORK_CACHE_ENTRY_COUNT_SHARE
    197 
    198  http_cache_entry_reload_time:
    199    type: timing_distribution
    200    description: >
    201      Time before we reload an HTTP cache entry again to memory
    202 
    203      This metric was generated to correspond to the Legacy Telemetry
    204      exponential histogram HTTP_CACHE_ENTRY_RELOAD_TIME.
    205    time_unit: millisecond
    206    bugs:
    207      - https://bugzilla.mozilla.org/show_bug.cgi?id=1935420
    208    data_reviews:
    209      - https://bugzilla.mozilla.org/show_bug.cgi?id=1935420
    210    notification_emails:
    211      - necko@mozilla.com
    212    expires: never
    213    telemetry_mirror: HTTP_CACHE_ENTRY_RELOAD_TIME
    214 
    215  http_cache_entry_alive_time:
    216    type: timing_distribution
    217    description: >
    218      Time for which an HTTP cache entry is kept warmed in memory
    219 
    220      This metric was generated to correspond to the Legacy Telemetry
    221      exponential histogram HTTP_CACHE_ENTRY_ALIVE_TIME.
    222    time_unit: millisecond
    223    bugs:
    224      - https://bugzilla.mozilla.org/show_bug.cgi?id=1935420
    225    data_reviews:
    226      - https://bugzilla.mozilla.org/show_bug.cgi?id=1935420
    227    notification_emails:
    228      - necko@mozilla.com
    229    expires: never
    230    telemetry_mirror: HTTP_CACHE_ENTRY_ALIVE_TIME
    231 
    232  http_cache_entry_reuse_count:
    233    type: custom_distribution
    234    description: >
    235      Reuse count of an HTTP cache entry warmed in memory
    236 
    237      This metric was generated to correspond to the Legacy Telemetry linear
    238      histogram HTTP_CACHE_ENTRY_REUSE_COUNT.
    239    range_min: 1
    240    range_max: 20
    241    bucket_count: 19
    242    histogram_type: linear
    243    bugs:
    244      - https://bugzilla.mozilla.org/show_bug.cgi?id=1935420
    245    data_reviews:
    246      - https://bugzilla.mozilla.org/show_bug.cgi?id=1935420
    247    notification_emails:
    248      - necko@mozilla.com
    249    expires: never
    250    telemetry_mirror: HTTP_CACHE_ENTRY_REUSE_COUNT