User Tools

Site Tools


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.
 +
 +<blockquote>
 +Command: ''profile seconds filename [start end]''
 +
 +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.
 +</blockquote> 
 +
 +This file can be inspected with gprof.
 +
 +[[https://ftp.gnu.org/old-gnu/Manuals/gprof-2.9.1/html_mono/gprof.html#SEC4]]
profiling.txt · Last modified: by river

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki