How to measure the time and maybe memory of an effect?
I need to be able to measure the duration of a function and noticed there is a Metrics https://effect.website/docs/observability/metrics/
I tried to use it like this:
But the result i am getting is
I guess there is something i'm missing but sum is 0 and the function clearly took much longer.
In the future i might also want to measure the memory consumption of this function.
I'm pretty new to the world of effect but it seems very cool!
I tried to use it like this:
But the result i am getting is
I guess there is something i'm missing but sum is 0 and the function clearly took much longer.
In the future i might also want to measure the memory consumption of this function.
I'm pretty new to the world of effect but it seems very cool!
Effect Documentation
Effect Metrics provides powerful monitoring tools, including counters, gauges, histograms, summaries, and frequencies, to track your application's performance and behavior.

