mirror of
https://github.com/open-policy-agent/opa.git
synced 2026-08-13 03:42:35 -06:00
7f2895ddc8
The number of EVAL/REDO counts in the profile result are sometimes difficult to understand. This is mainly due to the fact that the compiler rewrites expressions and assigns the same location to each generated expression and the profiler keys the counters by the location. So users have no idea that multiple expressions may be contributing to the profile result for a given line in the policy. This change attempts to provide more clarity to the profile output by including the number of generated expressions for each given expression thereby helping to better understand the result and also how the evaluation works. Fixes: #2552 Signed-off-by: Ashutosh Narkar <anarkar4387@gmail.com>