| # Copyright 2021 The Fuchsia Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| ################################################################################ |
| # Cobalt Project: camera |
| ################################################################################ |
| |
| metric_definitions: |
| |
| ################################################################################ |
| # Next Metric ID: 2 |
| ################################################################################ |
| |
| ################################################################################ |
| # camera_frame_drop_counts_per_stream |
| # |
| # Total number of dropped frames per stream type. Typically, the system decides |
| # to skip a delivered frame in following cases: |
| # 1. FrameAvailableInfo contains an erroneous status, |
| # 2. Delivered frame has a duplicated identifier, |
| # 3. Delivered frame does not have a timestamp, |
| # 4. Or, too many frames are currently in use. |
| ################################################################################ |
| - id: 1 |
| metric_name: camera_frame_drop_counts_per_stream |
| metric_type: OCCURRENCE |
| metric_semantics: [METRIC_SEMANTICS_UNSPECIFIED] |
| |
| metric_dimensions: |
| - dimension: stream_type |
| event_codes: |
| # See CameraStreamType in fuchsia.camera2.stream.fidl |
| 1: Unknown |
| 2: MachineLearning |
| 3: Monitoring |
| 4: FullResolution |
| 5: DownscaledResolution |
| 6: VideoConference |
| 7: ExtendedFov |
| |
| - dimension: error_code |
| event_codes: |
| 1: Unknown |
| 2: InvalidFrame # Corresponding to FrameStatus::ERROR_FRAME |
| 3: NoMemory # Corresponding to FrameStatus::ERROR_BUFFER_FULL |
| 4: FrameIdInUse |
| 5: InvalidTimestamp |
| 6: TooManyFramesInFlight |
| |
| reports: |
| - report_name: camera_stream_frame_drop_stat |
| id: 1 |
| report_type: FLEETWIDE_OCCURRENCE_COUNTS |
| privacy_level: NO_ADDED_PRIVACY |
| system_profile_field: [OS, ARCH, BOARD_NAME, PRODUCT_NAME, SYSTEM_VERSION, CHANNEL, REALM] |
| |
| meta_data: |
| max_release_stage: GA |
| expiration_date: "2022/05/18" |