Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register

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

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.

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?

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.

There are 0 guests and 0 other users also viewing this topic