Skip to content

Commit

Permalink
Added support for simulated/embedded gprof output
Browse files Browse the repository at this point in the history
* This format is seen in simulation of certain embedded
  systems.

* This format does not include a `time` column and contains
  an additional measurement units column underneath (see line
  89 of included example). The units of measurement row
  appears to be ignored without adding any additional ignore
  cases.

* Provided example and test in `tests/prof/embedded.prof`.
  • Loading branch information
DepthDeluxe authored and Colin Heinzmann committed Oct 3, 2023
1 parent cdeea9e commit bcb1b85
Show file tree
Hide file tree
Showing 2 changed files with 459 additions and 1 deletion.
2 changes: 1 addition & 1 deletion gprof2dot.py
Original file line number Diff line number Diff line change
Expand Up @@ -1154,7 +1154,7 @@ def translate(self, mo):
r'^index\s+%time\s+self\s+descendents\s+called\+self\s+name\s+index\s*$|' +
r'^\s+called/total\s+children\s*$|' +
# GNU gprof header
r'^index\s+%\s+time\s+self\s+children\s+called\s+name\s*$'
r'^index\s+%\s+(time\s+)?self\s+children\s+called\s+name\s*$'
)

_cg_ignore_re = re.compile(
Expand Down
Loading

0 comments on commit bcb1b85

Please sign in to comment.