Files
codeql/python/ql/src/Metrics/FunctionNumberOfCalls.ql
Taus e8de8433f4 Python: Update all metrics-dependant queries
The ones that no longer require points-to no longer import
`LegacyPointsTo`. The ones that do use the specific
`...MetricsWithPointsTo` classes that are applicable.
2026-02-19 12:32:27 +00:00

15 lines
328 B
Plaintext

/**
* @name Number of calls
* @description The total number of calls in a function.
* @kind treemap
* @id py/number-of-calls-per-function
* @treemap.warnOn highValues
* @metricType callable
* @metricAggregate avg max
*/
import python
from FunctionMetrics func
select func, func.getNumberOfCalls() as n order by n desc