зеркало из https://github.com/github/codeql.git
Exploratory query to test the API
This commit is contained in:
Родитель
77871e287d
Коммит
196dbd3a33
|
@ -0,0 +1,18 @@
|
|||
/**
|
||||
* Finds evaluations with very large tuple counts somewhere
|
||||
*/
|
||||
|
||||
import ql
|
||||
import codeql_ql.StructuredLogs
|
||||
|
||||
float maxTupleCount(KindPredicatesLog::SummaryEvent evt) {
|
||||
result = max(KindPredicatesLog::PipeLineRuns r | r.getEvent() = evt | r.getRun(_).getCount(_))
|
||||
}
|
||||
|
||||
int maxPipeLineLength(KindPredicatesLog::SummaryEvent evt) {
|
||||
result = max(evt.getRA().getPipeLine(_).getLength())
|
||||
}
|
||||
|
||||
from KindPredicatesLog::SummaryEvent evt
|
||||
select evt, evt.getResultSize(), evt.getMillis() as ms, maxTupleCount(evt) as mc, evt.getMillis(),
|
||||
maxPipeLineLength(evt) as len order by mc desc
|
Загрузка…
Ссылка в новой задаче