8.7 Code Improvement

Improve your code by using code refactoring and/or profiling.

Refactoring code is a method of making code simpler without changing its functionality. Currently you can do the following with C code:

  • Find function usages throughout files
  • Rename functions and parameters throughout files

For more information, see 7.7 C Code Refactoring.

Profiling code is an examination of CPU Usage, Memory Usage, and Thread Usage tools, all observed while the program is running. The profiling tools run automatically whenever you run your C project.

Only some devices and tools support profiling. For more information, see Help > Release Notes, Hardware Tool Debug Features by Device.