CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   gprof output in openFoam (https://www.cfd-online.com/Forums/openfoam-programming-development/121431-gprof-output-openfoam.html)

luckycfd July 28, 2013 18:55

gprof output in openFoam
 
Hi friends,
In the using gprof tool for profiling the icoFoam solver in cavity case, the the first function of output is:
Code:

Flat profile:

Each sample counts as 0.01 seconds.
  %  cumulative  self              self    total         
 time  seconds  seconds    calls  s/call  s/call  name   
 19.14      1.42    1.42    10000    0.00    0.00  Foam::dimensioned<double>::dimensioned(Foam::word const&, Foam::dimensionSet const&, double)

now, where is this function that have the most execution time? How can I understand this function and its place in the icoFoam source cod? actually, What is this function?:(

luckycfd July 30, 2013 07:57

Friends...please

luckycfd July 31, 2013 02:55

couldn,t any body help me...?

luckycfd August 1, 2013 05:49

I,m waiting...:(

luckycfd August 21, 2013 01:53

friends...?

sibo September 13, 2018 09:49

Hope you find the solutions!
 
Hi Hassan,

I hope you find your solutions! I know it's a long time ago, but I am wondering could you help me with this? For the cavity case, firstly I run
Code:

icoFoam
and a file named gmon.out generated. Then, I type
Code:

gprof /../icoFoam > results.txt
, the terminal showed 'success' however the result.txt is empty. Do you know where I did wrong?
Thanks a lot!

sibo September 13, 2018 10:09

Never mind. I found the solutions.

Giantsda September 17, 2018 17:52

I have no clue of your question but I do know how to find out where this function is called.
Tool:
Hotspot
https://github.com/KDAB/hotspot
You can find almost all you want to know from the frame graph:
https://www.kdab.com/hotspot-gui-linux-perf-profiler/

Tell me if it does not solve your problem and I have other ways.

Chen


All times are GMT -4. The time now is 19:19.