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 , 9 years ago
comment:2 by , 7 years ago
Milestone: | Future |
---|---|
Resolution: | → worksforme |
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Have you tried measureTime=true? That does count the number of function calls (as does operf, valgrind, etc).