Opened 9 years ago

Closed 7 years ago

#3720 closed enhancement (worksforme)

Profiling: Measure number of calls to functions

Reported by: Henning Kiel Owned by: Lennart Ochel
Priority: normal Milestone:
Component: Code Generation Version: v1.9.4-dev-nightly
Keywords: Cc:

Description

In the CodegenCFunctions.tpl each Modelica function is instrumented with a stack overflow check.

The same place could be used to count the number of times this function was called. The counters should be managed centrally. All function names and their numer of calls could be written to a file at the end of the program run.

This hints for optimization can be easily generated.

Change History (2)

comment:1 by Martin Sjölund, 9 years ago

Have you tried measureTime=true? That does count the number of function calls (as does operf, valgrind, etc).

comment:2 by Martin Sjölund, 7 years ago

Milestone: Future
Resolution: worksforme
Status: newclosed
Note: See TracTickets for help on using tickets.