Profiling allows you to gather dynamic data during execution of
your code. You can engage profiling with a specific component test run configuration
to obtain more detailed information about the execution of the component under
test.
Before you run a component test:
- You must have a valid test suite containing at least one test case.
- The component under test must be compilable.
- Agent Controller must be running on your machine in order to retrieve
test results. The Agent Controller is a daemon process that enables client
applications to launch host processes and interact with agents that coexist
within host processes.
To engage profiling features on a component test run configuration:
- Switch to the Profiling and Logging perspective and click .
- In the Configurations list, select Component
Test and click New.
- Type the name of the new run configuration. If the name
already exists, it is appended with a number.
- Click the Test tab and select the test suites
and test cases that you want to run. You can select multiple test
suites and test cases from multiple projects.
- Click the Execution Results tab to change
the way execution results are produced.
- You can specify the name of the test run results. By
default, the name is the same as the run configuration.
- Select Overwrite existing test run results if
you do not want to keep previous test run results. By default,
test run results are generated with a timestamp appended to their name in
order to differentiate them. When this option is selected, all test runs have
the specified name, overwriting any existing results.
- You can change the location where the test run result is located. By default test run results are produced in the Run folder of the current
test project.
- Click the Profiling tab and engage the profiling
tools that you want to use with this run configuration. Profiling
tools include memory analysis, code coverage, probes, thread information and
time analysis.
- Click Run to execute the run configuration.
You can see the progress of the test run by clicking the
Progress 
button
in the status bar.