C/C++test Data Flow Analysis Performance Debugging Log
To get information about how long it takes to process each file and how long it takes to do each of the Data Flow (Bug Detective) analysis phase, set up the following flags in the Parasoft > Preferences > Technical Support > Advanced options (make sure Advanced options are enabled):
Results will be displayed on the C++test console after the analysis finishes.
To achieve that in the CLI run, set up the following options in the localsettings properties file:
and make sure you use "-appconsole stdout|" option specified in the cpptestcli command line.
With these options we will know which phase takes the most time (collecting data building graphs / running rules) and whether there are some files that we take most of the time (you could consider disabling testing of such files in the first place).
To get detailed profiling information about the BD analysis (including time spent processing each of the rules), enable verbose logging in GUI (Parasoft > Preferences > Technical Support > Enable verbose logging) or in the CLI with the following localsettings properties option:
and use the following flags in the cpptestcli command line:
Specified directory will be filled with data after the analysis finishes. It will contain e.g. profiler.dat file, where you can find detailed profiler information. To find information about the rules, look for lines line this:
means that rule BD-TRS-LOCK was invoked 196 times with the total time: 0.488sec, min time: 0.0sec, max time: 0.487sec, avg time: 0.002sec