Profile and error:has_type/2

Hello, I’m new to this forum. What does it mean when profile/1 mentions


as the number one consumer of CPU-time? I could give my source and input, of course, but I guess there is a very simple answer in this case.


If you use the graphical tool you can click on the predicate and see the callers. error:has_type/2 is part of runtime type checking (must_be/2), so it seems something is doing that a lot. Note that this is a statistical (sampling) profiler and you typically need at least a couple of seconds runtime to get a fair picture.