---
title: "McapStatistics"
---
<!-- DO NOT EDIT! This file was auto-generated by crates/build/re_types_builder/src/codegen/docs/website.rs -->

⚠️ **This type is _unstable_ and may change significantly in a way that the data won't be backwards compatible.**
Recording-level statistics about an MCAP file.

This archetype contains summary information about an entire MCAP recording, including
counts of messages, schemas, channels, and other records, as well as timing information
spanning the full recording duration. It is typically logged once per recording to provide
an overview of the dataset's structure and content.

See also [`archetypes.McapChannel`](https://rerun.io/docs/reference/types/archetypes/mcap_channel) for individual channel definitions,
[`archetypes.McapMessage`](https://rerun.io/docs/reference/types/archetypes/mcap_message) for message content, [`archetypes.McapSchema`](https://rerun.io/docs/reference/types/archetypes/mcap_schema) for schema definitions,
and the [MCAP specification](https://mcap.dev/) for complete format details.

## Fields
### Required
* `message_count`: [`Count`](../components/count.md)
* `schema_count`: [`Count`](../components/count.md)
* `channel_count`: [`Count`](../components/count.md)
* `attachment_count`: [`Count`](../components/count.md)
* `metadata_count`: [`Count`](../components/count.md)
* `chunk_count`: [`Count`](../components/count.md)
* `message_start_time`: [`Timestamp`](../components/timestamp.md)
* `message_end_time`: [`Timestamp`](../components/timestamp.md)

### Optional
* `channel_message_counts`: [`ChannelMessageCounts`](../components/channel_message_counts.md)


## Can be shown in
* [DataframeView](../views/dataframe_view.md)

## API reference links
 * 🌊 [C++ API docs for `McapStatistics`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1archetypes_1_1McapStatistics.html)
 * 🐍 [Python API docs for `McapStatistics`](https://ref.rerun.io/docs/python/stable/common/archetypes#rerun.archetypes.McapStatistics)
 * 🦀 [Rust API docs for `McapStatistics`](https://docs.rs/rerun/latest/rerun/archetypes/struct.McapStatistics.html)

## Example

### Simple MCAP statistics

snippet: archetypes/mcap_statistics_simple

