Skip to content

Commit 196dbd3

Browse files
committed
Exploratory query to test the API
1 parent 77871e2 commit 196dbd3

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/**
2+
* Finds evaluations with very large tuple counts somewhere
3+
*/
4+
5+
import ql
6+
import codeql_ql.StructuredLogs
7+
8+
float maxTupleCount(KindPredicatesLog::SummaryEvent evt) {
9+
result = max(KindPredicatesLog::PipeLineRuns r | r.getEvent() = evt | r.getRun(_).getCount(_))
10+
}
11+
12+
int maxPipeLineLength(KindPredicatesLog::SummaryEvent evt) {
13+
result = max(evt.getRA().getPipeLine(_).getLength())
14+
}
15+
16+
from KindPredicatesLog::SummaryEvent evt
17+
select evt, evt.getResultSize(), evt.getMillis() as ms, maxTupleCount(evt) as mc, evt.getMillis(),
18+
maxPipeLineLength(evt) as len order by mc desc

0 commit comments

Comments
 (0)