Commit Graph

4 Commits

Author SHA1 Message Date
Ashutosh Narkar 4e5f791673 profiler: Group expressions with missing locations
Previously the profiler would panic if it encountered an expression with no location info. This change groups such expressions by giving them a fake location so that their evaluation results can be captured.

Signed-off-by: Ashutosh Narkar <anarkar4387@gmail.com>
2020-04-08 11:30:08 -07:00
Ashutosh Narkar eb5e5b243f Add profiler to OPA eval command
Signed-off-by: Ashutosh Narkar <anarkar4387@gmail.com>
2018-07-20 16:00:05 -07:00
Ashutosh Narkar 45f589b2a7 Sort profiler result based on criteria to return top N results
Signed-off-by: Ashutosh Narkar <anarkar4387@gmail.com>
2018-07-03 10:34:04 -07:00
Ashutosh Narkar e85546d1b6 Add Rego profiler
Signed-off-by: Ashutosh Narkar <anarkar4387@gmail.com>
2018-07-03 10:34:04 -07:00