profiling
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
| — | profiling [2024/07/27 00:24] (current) – created river | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Profiling (Embedded) ====== | ||
| + | Notes on profiling embedded systems. | ||
| + | |||
| + | openocd has a profile command, which samples the program counter. Apparently needs latest git version - it's not in release yet. | ||
| + | |||
| + | < | ||
| + | Command: '' | ||
| + | |||
| + | Profiling samples the CPU’s program counter as quickly as possible, which is useful for non-intrusive stochastic profiling. Saves up to 1000000 samples in filename using “gmon.out” format. Optional start and end parameters allow to limit the address range. | ||
| + | </ | ||
| + | |||
| + | This file can be inspected with gprof. | ||
| + | |||
| + | [[https:// | ||
profiling.txt · Last modified: by river
