Skip to content

Metric

Source code in docs_src/capo_codeguruprofiler/types/metric.py
class Metric(TypedDict, closed=True):
    frame_name: "str"
    """<p> The name of the method that appears as a frame in any stack in a profile. </p>"""
    type: "capo_codeguruprofiler.types.metric_type.MetricType"
    """<p> A type that specifies how a metric for a frame is analyzed. The supported value <code>AggregatedRelativeTotalTime</code> is an aggregation of the metric value for one frame that is calculated across the occurences of all frames in a profile.</p>"""
    thread_states: "capo_codeguruprofiler.types.strings.Strings"
    """<p> The list of application runtime thread states that is used to calculate the metric value for the frame. </p>"""

frame_name instance-attribute

frame_name: str

The name of the method that appears as a frame in any stack in a profile.

thread_states instance-attribute

thread_states: Strings

The list of application runtime thread states that is used to calculate the metric value for the frame.

type instance-attribute

type: MetricType

A type that specifies how a metric for a frame is analyzed. The supported value AggregatedRelativeTotalTime is an aggregation of the metric value for one frame that is calculated across the occurences of all frames in a profile.