Class Compilation
An invocation of the compiler. Note that more than one file may be compiled per invocation. For example, this command compiles three source files:
gcc -c f1.c f2.c f3.c
Three things happen to each file during a compilation:
- The file is compiled by a real compiler, such as gcc or VC.
- The file is parsed by the CodeQL C++ front-end.
- The parsed representation is converted to database tables by the CodeQL extractor.
This class provides CPU and elapsed time information for steps 2 and 3, but not for step 1.
Import path
import cppDirect supertypes
Predicates
| buildModeNone | Holds if this compilation was compiled using the “none” build mode. |
| getAFileCompiled | Gets a file compiled during this invocation. |
| getAnArgument | Gets an argument passed to the extractor on this invocation. |
| getAnExpandedArgument | Gets an expanded argument passed to the extractor on this invocation. |
| getArgument | Gets the |
| getExpandedArgument | Gets the |
| getExtractorCpuSeconds | Gets the amount of CPU time spent processing file number |
| getExtractorElapsedSeconds | Gets the amount of elapsed time while processing file number |
| getFileCompiled | Gets the |
| getFrontendCpuSeconds | Gets the amount of CPU time spent processing file number |
| getFrontendElapsedSeconds | Gets the amount of elapsed time while processing file number |
| getTotalCpuSeconds | Gets the total amount of CPU time spent processing all the files in the front-end and extractor. |
| getTotalElapsedSeconds | Gets the total amount of elapsed time while processing all the files in the front-end and extractor. |
| normalTermination | Holds if the extractor terminated normally. Terminating with an exit code indicating that an error occurred is considered normal termination, but crashing due to something like a segfault is not. |
| toString | Gets a textual representation of this element. |