# `Beamchmark.Suite.Memory.MemoryTask`
[🔗](https://github.com/membraneframework/beamchmark/blob/v1.4.2/lib/beamchmark/suite/memory/memory_task.ex#L1)

This module contains the memory benchmarking task.
Measurements are performed using [`:erlang.memory/0`](https://www.erlang.org/doc/man/erlang.html#memory-0)

# `child_spec`

Returns a specification to start this module under a supervisor.

`arg` is passed as the argument to `Task.start_link/1` in the `:start` field
of the spec.

For more information, see the `Supervisor` module,
the `Supervisor.child_spec/2` function and the `t:Supervisor.child_spec/0` type.

# `start_link`

```elixir
@spec start_link(mem_interval :: pos_integer(), duration :: pos_integer()) :: Task.t()
```

---

*Consult [api-reference.md](api-reference.md) for complete listing*
