Running your next integration build analysis
In this topic: |
Running incremental analysis
Once you've run an initial full integration build analysis, you can run incremental analysis for subsequent builds. We recommend using incremental analysis with each incremental build of your source files.
Running kwbuildproject with the --incremental option analyzes only files changed since the last analysis, as well as any files with dependencies on the changed files. This can reduce analysis time significantly, especially for large projects.
Important: To run incremental analysis, you must retain the output tables directory after the analysis run.
- Re-create your build specification:
kwant —-output /testprojects/freemind/my_project.out
- Run kwbuildproject with the --incremental option:
kwbuildproject --incremental --tables-directory /space/my_tables /home/klocwork/freemind.out
- Load the analysis results into the database:
kwadmin --url http://server2:8080/ load my_project /my_tables
Running a full build analysis
Whenever you run a clean build (a full rebuild of your source files), you should run a full build analysis.
To run a full build analysis:
- Re-create your build specification:
kwant -—output C:\testprojects\freemind.out
- Use the --force option of kwbuildproject to override incremental analysis.
kwbuildproject --force --tables-directory /space/my_tables <build_specification>
- Load the analysis results into the database:
kwadmin --url http://server2:8080/ load my_project /space/my_tables