PC Sampling – 16-Bit PIC MCUs Only

PC sampling is a method of examining C code to determine the percentage of time that is spent in each function. This information can show you where your program time is being spent so you can work to optimize your code.

For PC sampling, a device timer is set up to take samples of program execution and display the results in the PC profiling window.

PC profiling is similar to PC sampling. For details see PC Profiling – 32-Bit MCUs Only.

Figure 1. PC Sampling - 16-bit Device