Download TR0109 TSK3000 Embedded Tools Reference

Transcript
TSK3000 Embedded Tools Reference
Function counters
This will instrument the code to perform function call counting. This is a subset of the basic Block counters.
Time (not in combination with Block counters)
This will instrument the code to measure the time spent in a function. This includes the time spent in all sub functions
(callees).
Static profiling
With this option you do not need to run the application to get profiling results. The compiler generates profiling information at
compile time.
If you use the profiling option, you must link the corresponding libraries too! Refer to Section 5.4, Linking with Libraries in
Chapter Using the Linker of the user’s manual, for an overview of the (profiling) libraries. When you use Altium Designer,
automatically the correct libraries are linked.
Example
To generate block count information for the module test.c during execution, compile as follows:
c3000 −−profile=+block test.c
In this case you must link the library pb3000md.lib.
Related information
Chapter 3, Profiling in the user’s manual.
4−36