Skip to content

Commit 7fcde4c

Browse files
author
Esben Sparre Andreasen
committed
JS: add extraction metrics to the dbscheme
1 parent 27e36cf commit 7fcde4c

File tree

5 files changed

+2788
-0
lines changed

5 files changed

+2788
-0
lines changed

javascript/ql/src/semmlecode.javascript.dbscheme

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1136,3 +1136,32 @@ configLocations(
11361136
);
11371137

11381138
@configLocatable = @config | @configName | @configValue;
1139+
1140+
/**
1141+
* The time taken for the extraction of a file.
1142+
* This table contains non-deternistic content.
1143+
*
1144+
* The sum of the `time` column for each (`file`, `timerKind`) pair
1145+
* is the total time taken for extraction of `file`. The `extractionPhase`
1146+
* column provides a granular view of the extraction time of the file.
1147+
*/
1148+
extraction_time(
1149+
int file : @file ref,
1150+
// see `com.semmle.js.extractor.ExtractionMetrics.ExtractionPhase`.
1151+
int extractionPhase: int ref,
1152+
// 0 for the elapsed CPU time in nanoseconds, 1 for the wall elapsed wallclock time in nanoseconds
1153+
int timerKind: int ref,
1154+
float time: float ref
1155+
)
1156+
1157+
/**
1158+
* Non-timing related data for the extraction of a single file.
1159+
* This table contains non-deternistic content.
1160+
*/
1161+
extraction_data(
1162+
int file : @file ref,
1163+
// the absolute path to the cache file
1164+
varchar(900) cacheFile: string ref,
1165+
boolean fromCache: boolean ref,
1166+
int length: int ref
1167+
)

0 commit comments

Comments
 (0)