CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

gprof output in openFoam

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 28, 2013, 19:55
Default gprof output in openFoam
  #1
Member
 
Hassan
Join Date: Oct 2012
Location: Iran
Posts: 63
Rep Power: 13
luckycfd is on a distinguished road
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 is offline   Reply With Quote

Old   July 30, 2013, 08:57
Default
  #2
Member
 
Hassan
Join Date: Oct 2012
Location: Iran
Posts: 63
Rep Power: 13
luckycfd is on a distinguished road
Friends...please
luckycfd is offline   Reply With Quote

Old   July 31, 2013, 03:55
Default
  #3
Member
 
Hassan
Join Date: Oct 2012
Location: Iran
Posts: 63
Rep Power: 13
luckycfd is on a distinguished road
couldn,t any body help me...?
luckycfd is offline   Reply With Quote

Old   August 1, 2013, 06:49
Default
  #4
Member
 
Hassan
Join Date: Oct 2012
Location: Iran
Posts: 63
Rep Power: 13
luckycfd is on a distinguished road
I,m waiting...
luckycfd is offline   Reply With Quote

Old   August 21, 2013, 02:53
Default
  #5
Member
 
Hassan
Join Date: Oct 2012
Location: Iran
Posts: 63
Rep Power: 13
luckycfd is on a distinguished road
friends...?
luckycfd is offline   Reply With Quote

Old   September 13, 2018, 10:49
Default Hope you find the solutions!
  #6
Member
 
sibo
Join Date: Oct 2016
Location: Chicago
Posts: 55
Rep Power: 9
sibo is on a distinguished road
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 is offline   Reply With Quote

Old   September 13, 2018, 11:09
Default
  #7
Member
 
sibo
Join Date: Oct 2016
Location: Chicago
Posts: 55
Rep Power: 9
sibo is on a distinguished road
Never mind. I found the solutions.
sibo is offline   Reply With Quote

Old   September 17, 2018, 18:52
Default
  #8
New Member
 
Chen Shen
Join Date: Sep 2018
Posts: 14
Rep Power: 7
Giantsda is on a distinguished road
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
Giantsda is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Memory protection in OpenFOAM / combinig with FORTRAN botp OpenFOAM Programming & Development 2 February 15, 2016 13:25
Superlinear speedup in OpenFOAM 13 msrinath80 OpenFOAM Running, Solving & CFD 18 March 3, 2015 06:36
mixerVesselAMI2D's mass is not balancing sharonyue OpenFOAM Running, Solving & CFD 6 June 10, 2013 10:34
[Gmsh] gmsh 2.6.0 conversion to OpenFoam 160 rosswin OpenFOAM Meshing & Mesh Conversion 0 March 5, 2013 08:34
lift and drag on ship superstructures vaina74 OpenFOAM Running, Solving & CFD 3 June 8, 2010 13:30


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