swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: optimizing


From: Nelson Minar
Subject: Re: optimizing
Date: Sun, 28 Jan 96 00:10:58 MST

>Do ya'll have some Tool for identifying performance bottlenecks?

I've run gprof against Swarm occasionally - it's a simple enough
profiler, gives flat stats as well as a call graph. Typical use is to
compile all files with -pg (make 'OPTFLAGS=-pg -O2' is reasnable),
then run and run gprof on the output after quit.

Here's part of the output from running gprof on heatbugs. What it says
is that 77% of the time in heatbugs is running the CA on space, not a
suprise.


Each sample counts as 0.01 seconds.
  %   cumulative   self              self     total
 time   seconds   seconds    calls  us/call  us/call  name
 77.83     21.56    21.56      600 35933.33 35933.33  _i_Diffuse2d__stepRule
  5.92     23.20     1.64                             mcount
  4.84     24.54     1.34    60000    22.33    25.53  
_i_HeatSpace__findExtremeType_X_Y_
  2.92     25.35     0.81                             objc_msg_lookup
  1.59     25.79     0.44    60000     7.33    39.44  _i_Heatbug__step
  0.83     26.02     0.23   720000     0.32     0.32  
_i_Discrete2d__getValueAtX_Y_
  0.76     26.23     0.21                             objc_msg_lookup_super
  0.72     26.43     0.20       25  8000.00 19815.38  _i_Value2dDisplay__display
  0.69     26.62     0.19        3 63333.33 142614.22  _i_Activity_c___run_
  0.65     26.80     0.18   162500     1.11     1.85  
_i_ZoomRaster__drawPointX_Y_Color_


reply via email to

[Prev in Thread] Current Thread [Next in Thread]