https://github.com/feng19/extrace_map_limiter
MapLimiter for Extrace
https://github.com/feng19/extrace_map_limiter
debug elixir
Last synced: 4 months ago
JSON representation
MapLimiter for Extrace
- Host: GitHub
- URL: https://github.com/feng19/extrace_map_limiter
- Owner: feng19
- License: apache-2.0
- Created: 2025-05-16T15:08:35.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2025-10-20T02:44:34.000Z (8 months ago)
- Last Synced: 2025-10-20T06:49:33.487Z (8 months ago)
- Topics: debug, elixir
- Language: Elixir
- Homepage: https://hexdocs.pm/extrace_map_limiter
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Extrace.MapLimiter
**MapLimiter for Extrace**
## Installation
Adding `extrace_map_limiter` to your list of dependencies in `mix.exs`:
```elixir
def deps do
[
{:extrace_map_limiter, "~> 0.1"}
]
end
```
## Usage
```elixir
iex(1)> :ok = Extrace.MapLimiter.install()
iex(2)> :ok = Extrace.MapLimiter.limit(DateTime, %{__struct__: DateTime}, [:day])
iex(3)> Extrace.calls({DateTime, :new!, :return_trace}, 10)
iex(4)> DateTime.new!(~D[2018-10-28], ~T[02:30:00])
~U[2018-10-28 02:30:00Z]
10:05:36.258872 <0.179.0> DateTime.new!(~D[2018-10-28], ~T[02:30:00])
10:05:36.263055 <0.179.0> DateTime.new!/2 --> #DateTime
```