xref: /aosp_15_r20/external/angle/build/util/lib/proto/measure.py (revision 8975f5c5ed3d1c378011245431ada316dfb6f244)
1#!/usr/bin/env vpython3
2
3# Copyright 2024 The Chromium Authors
4# Use of this source code is governed by a BSD-style license that can be
5# found in the LICENSE file.
6""" The base class of all the measurement supported by the metric. """
7
8from abc import ABC, abstractmethod
9from test_script_metrics_pb2 import TestScriptMetric
10
11
12class Measure(ABC):
13
14  @abstractmethod
15  def dump(self) -> TestScriptMetric:
16    """Dumps the data into a TestScriptMetric instance.
17
18    Returns:
19        TestScriptMetric: A protobuf instance to represent the metric data.
20    """
21