- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » CPU time tracing
CPU time tracing
CPU time tracing
Hello!
Except for varying the code and taking the simulation-time with a stop watch - Is there any mechanism which can be (ab-)used to find out which function calls need most CPU time in a simulation?
Cheers
Hannes
- edes
- 38 Posts
Re: CPU time tracing
You can compile the simulation with the -pg flag. And then run gprof afterwards.
That's what the compile omc with when we need to figure which functions take most time anyway. It's probably applicable to simulation code as well.
- sjoelund.se
- 1700 Posts
Re: CPU time tracing
Thank you for your answer - I'll try that.
Looking for Linux binaries/souces i could only find 1.5.0 RC1. Where can I find the latest RC2 for Linux?
- edes
- 38 Posts
Re: CPU time tracing
Those are the latest binaries for Linux. Source code can be found on:
Directions for obtaining rc2 sources can be found on: http://www.openmodelica.org/index.php/d … ource-code
Or you could try the very latest version (trunk) if you'd rather use that.
- sjoelund.se
- 1700 Posts
- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » CPU time tracing