Running your next integration build analysis

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.

  1. Re-create your build specification:
    kwant —-output /testprojects/freemind/my_project.out
     
  2. Run kwbuildproject with the --incremental option:
    kwbuildproject --incremental --tables-directory /space/my_tables /home/klocwork/freemind.out
     
  3. 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:

  1. Re-create your build specification:
    kwant -—output C:\testprojects\freemind.out
     
  2. Use the --force option of kwbuildproject to override incremental analysis.
    kwbuildproject --force --tables-directory /space/my_tables <build_specification>
     
  3. Load the analysis results into the database:
    kwadmin --url http://server2:8080/ load my_project /space/my_tables