# print_usage_table

> **Function** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/_session_stats/print_usage_table)

Print a model-usage stats table to a Rich console.

Each row shows the serving provider alongside the model name. When the
session spans multiple models each gets its own row with a totals row
appended; single-model sessions show one row.

## Signature

```python
print_usage_table(
    stats: SessionStats,
    wall_time: float,
    console: Console,
) -> None
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `stats` | `SessionStats` | Yes | Cumulative session stats. |
| `wall_time` | `float` | Yes | Total wall-clock time in seconds. |
| `console` | `Console` | Yes | Rich console for output. |

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/7794b61a6e76230e8c7a49bdce808b3728305914/libs/code/deepagents_code/_session_stats.py#L162)