> ## Documentation Index
> Fetch the complete documentation index at: https://docs.paradime.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Metrics

> How a DinoAI session trace counts credits, model calls, tool calls, wall clock, peak context, and the flight recorder's compute and credit summaries.

The numbers in a trace come from the session's log. A value the log doesn't have shows as `—`. It is never estimated.

![A trace with the flight recorder on the Credits tab, reading Σ 1,284 credits · 4 calls ≥100 cr, its tallest bar highlighted, and the matching model (main) call open in the inspector with 412 credits at 100% of top and 61,240 / 920 tokens in and out](https://mintcdn.com/paradime-docs/BdIrIxo113P8jOys/images/dinoai-trace-flight-recorder-credits.jpg?fit=max\&auto=format\&n=BdIrIxo113P8jOys\&q=85\&s=6d8ca85a116321c6b76be5e66a39a18d)

## Header

| Number | How it is counted |
| - | - |
| **credits** | The sum of every model call's credits. A model call's credits are what was billed for it. When the log has no billed amount, they are its tokens priced at the model's rates. `—` when no model call has credits. |
| **model calls** | The number of model calls, finished or not. |
| **tool calls** | The number of tool calls, finished or not, sub-agent calls included. |
| **wall clock** | The time from the session's start to the end of its latest turn. While a turn is still running, it shows the time up to the end of the turn before. |
| **peak context** | The largest number of input tokens sent in a single model call. From 1,000 it shows in thousands, for example `8.4K` or `61K`. |

The wall clock shows milliseconds under a second, then seconds, minutes and seconds, or hours and minutes.

## Inspector

| Field | How it is counted |
| - | - |
| **Duration** | The step's end minus its start. |
| **Credits** | The step's own credits. Only model calls have them. |
| **% of top** | The step's credits divided by the most expensive step's credits. See [Credits and share of top](https://docs.paradime.io/products/dino-ai/traces/span-reference.md#credits-and-share-of-top). |
| **Tokens in / out** | The model call's input and output tokens. **cached** is the input tokens the provider read from its cache. |

## Flight recorder

The flight recorder has one bar for every model call and tool call that has a duration, in order.

| Tab | Summary | How it is counted |
| - | - | - |
| **Duration** | `Σ ≈ 3 min compute · 2 calls ≥20s` | **compute** is the sum of all bar durations, rounded to whole minutes. The second number counts calls of more than 20 seconds. |
| **Credits** | `Σ 1,284 credits · 4 calls ≥100 cr` | The sum of the bars' credits, and how many calls used 100 credits or more. Only model calls have credits. |

The **Credits** tab shows only when the session has credits.

## Sub-agents

A sub-agent runs in its own session, with its own trace and its own numbers. The parent's **tool calls** counts the `run_subagent` call. The sub-agent's model calls and credits are in the sub-agent's trace.


## Related topics

- [Weekly Metrics Pulse Reporter](https://docs.paradime.io/guides/programmable-agents/weekly-metrics-pulse-agent.md)
- [Anomaly Tests Parameters](https://docs.paradime.io/integrations/elementary-data/anomaly-detection-tests/anomaly-tests-parameters.md)
- [Selector Methods](https://docs.paradime.io/guides/dbt-fundamentals/running-dbt/mastering-the-dbt-cli/selector-methods.md)
- [dbt selector methods for precise CLI runs and tests](https://docs.paradime.io/guides/dbt-fundamentals/running-dbt/mastering-the-dbt-cli/methods.md)
- [Metadata](https://docs.paradime.io/developers/python-sdk/modules/metadata.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.