# Limits

> What a recording keeps at most, where values and names are cut, and what is said when a limit is reached.

Every limit that is reached is said in `not_collected`, with the reason. The work of noting an event is still done after a limit is reached.

## Per process

| What | At most | Variable |
|---|---|---|
| calls | 200,000 | `ORMAOS_MAX_CALLS` |
| exceptions | 50,000 | `ORMAOS_MAX_EXCEPTIONS` |
| lines (`--path`) | 200,000 | `ORMAOS_MAX_LINES` |
| I/O events | 100,000 | `ORMAOS_MAX_IO` |
| logging records | 50,000 | `ORMAOS_MAX_LOGS` |

## Data

| What | Limit | Variable |
|---|---|---|
| nulls of a DataFrame | not counted above 1,000,000 cells | `ORMAOS_MAX_CELLS` |
| NaN and inf of an array or tensor | not counted above 1,000,000 elements | `ORMAOS_MAX_ELEMENTS` |
| time spent counting, per process | 2 seconds; after that, no more counting | `ORMAOS_MAX_HEALTH_MS` |
| columns of a DataFrame described | the first 50 | |
| items of a list, tuple, set or dict typed | the first 50; the length is exact | |

Health (NaN, inf, smallest and largest) is not computed for a tensor that is not on the CPU (it would be copied from the device), or while `torch.jit` traces. The shape, the dtype and the device are always there.

## Values and names

| What | Limit |
|---|---|
| each value, with `--values` | 200 characters (`ORMAOS_MAX_VALUE`), with the full length said |
| containers, with `--values` | two levels, the first 10 items |
| a path or a program name | 300 characters |

## Answers

Every answer is bounded: `tree` shows 30 entries by default, `exceptions`, `io`, `logs` and `diff` 20, `path` 40, `list` 10. `--limit N` asks for more, `--offset N` skips what was seen.

## A process that is killed

It loses the events it had not written yet: at most 256 records, or what arrived in its last 0.2 seconds.

## Reading

`show`, `list`, `status` and the summary read a recording line by line and keep no call in memory. `tree`, `exceptions`, `io`, `path` and `diff` load the whole recording.

---

Source: https://docs.ormaos.com/python/reference/limits/ · ormaos 0.0.1 · ormaos-python 968f69776c · ormaos-examples 6e27be5922
