mirror of
https://github.com/github/codeql.git
synced 2026-03-30 20:28:15 +02:00
The ones that no longer require points-to no longer import `LegacyPointsTo`. The ones that do use the specific `...MetricsWithPointsTo` classes that are applicable.
15 lines
328 B
Plaintext
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
|