mirror of
https://github.com/github/codeql.git
synced 2026-01-23 11:22:58 +01:00
Merge branch 'main' into moreNames
This commit is contained in:
@@ -16,10 +16,12 @@ FileWithExtractionMetrics getACacheHit(FileWithExtractionMetrics f) {
|
||||
result.isFromCache()
|
||||
}
|
||||
|
||||
from FileWithExtractionMetrics file, boolean fromCache
|
||||
where (if file.isFromCache() then fromCache = true else fromCache = false)
|
||||
select file.getAbsolutePath() as FILE, file.getCpuTime() as CPU_NANO,
|
||||
file.getNumberOfLines() as LINES, count(Locatable n | n.getFile() = file) as LOCATABLES,
|
||||
count(TypeAnnotation n | n.getFile() = file) as TYPES, file.getLength() as LENGTH,
|
||||
fromCache as FROM_CACHE, count(getACacheMember(file.getCacheFile())) as CACHE_MEMBERS,
|
||||
count(getACacheHit(file)) as CACHE_HITS, file.getCacheFile() as CACHE_FILE
|
||||
from FileWithExtractionMetrics fileWithMetrics, boolean fromCache
|
||||
where (if fileWithMetrics.isFromCache() then fromCache = true else fromCache = false)
|
||||
select fileWithMetrics.getAbsolutePath() as file, fileWithMetrics.getCpuTime() as cpu_nano,
|
||||
fileWithMetrics.getNumberOfLines() as lines,
|
||||
count(Locatable n | n.getFile() = fileWithMetrics) as locatables,
|
||||
count(TypeAnnotation n | n.getFile() = fileWithMetrics) as types,
|
||||
fileWithMetrics.getLength() as length, fromCache as from_cache,
|
||||
count(getACacheMember(fileWithMetrics.getCacheFile())) as cache_members,
|
||||
count(getACacheHit(fileWithMetrics)) as cache_hits, fileWithMetrics.getCacheFile() as cache_file
|
||||
|
||||
@@ -9,5 +9,5 @@
|
||||
import semmle.javascript.meta.ExtractionMetrics::ExtractionMetrics
|
||||
|
||||
from PhaseName phaseName
|
||||
select phaseName, Aggregated::getCpuTime(phaseName) as CPU_NANO,
|
||||
Aggregated::getWallclockTime(phaseName) as WALLCLOCK_NANO
|
||||
select phaseName, Aggregated::getCpuTime(phaseName) as cpu_nano,
|
||||
Aggregated::getWallclockTime(phaseName) as wallclock_nano
|
||||
|
||||
Reference in New Issue
Block a user