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

Problem using gprof



Hello,

I am trying to profile an app I am writing using gprof. The app uses the
Gnome/GTK+ libs as well as the pthreads lib.

I have attached a section of the output - it doesn't seem correct. A
simple initialisation function is reported to take 50% of the time
whereas a complex function that is called over a 1000 times is reported
to take 0% of the time. Is this because of the threading?

Any ideas will be greatly appreciated.

Regards,

Cyrus 


Flat profile:

Each sample counts as 0.01 seconds.
  %   cumulative   self              self     total
 time   seconds   seconds    calls  us/call  us/call  name
 50.00      0.01     0.01        1 10000.00 10000.00  init_colortab
 50.00      0.02     0.01			      fftw_compute_twiddle
  0.00      0.02     0.00     2301     0.00     0.00  rb_write
  0.00      0.02     0.00     1032     0.00     0.00  doFFT
  0.00      0.02     0.00     1032     0.00     0.00  drawOneSpectragram
  0.00      0.02     0.00     1032     0.00     0.00  reducer
  0.00      0.02     0.00      643     0.00     0.00  rb_stack_add
  0.00      0.02     0.00      516     0.00     0.00  draw
  0.00      0.02     0.00      516     0.00     0.00  draw_spectragram
  0.00      0.02     0.00      516     0.00     0.00  extractChannelInfo
  0.00      0.02     0.00      516     0.00     0.00  rb_read
  0.00      0.02     0.00        2     0.00     0.00  drawOneChannelButton
  0.00      0.02     0.00        2     0.00     0.00  drawOneFrequencyMarker
  0.00      0.02     0.00        2     0.00     0.00  drawOneTimeMarker
  0.00      0.02     0.00        2     0.00     0.00  input_chan_max
  0.00      0.02     0.00        2     0.00     0.00  input_chan_min
  0.00      0.02     0.00        2     0.00     0.00  input_num_channels
  0.00      0.02     0.00        2     0.00     0.00  input_physical_channel
  0.00      0.02     0.00        1     0.00     0.00  calcNextChannelPos
  0.00      0.02     0.00        1     0.00     0.00  changeChannelPositions
  0.00      0.02     0.00        1     0.00     0.00  configure
  0.00      0.02     0.00        1     0.00     0.00  convolve_init
  0.00      0.02     0.00        1     0.00     0.00  createCanvas
  0.00      0.02     0.00        1     0.00     0.00  createMenus
  0.00      0.02     0.00        1     0.00     0.00  createNewToolbar
  0.00      0.02     0.00        1     0.00     0.00  drawChannelButtons
  0.00      0.02     0.00        1     0.00     0.00  initChanPlacementInfo
  0.00      0.02     0.00        1     0.00     0.00  initChannels
  0.00      0.02     0.00        1     0.00     0.00  initDAQ
  0.00      0.02     0.00        1     0.00     0.00  initDraw
  0.00      0.02     0.00        1     0.00     0.00  initState
  0.00      0.02     0.00        1     0.00     0.00  initWindowFunction
  0.00      0.02     0.00        1     0.00     0.00  init_draw_scope
  0.00      0.02     0.00        1     0.00     0.00  init_draw_spectragram
  0.00      0.02     0.00        1     0.00     0.00  init_esd_input
  0.00      0.02     0.00        1     0.00     0.00  init_gc
  0.00      0.02     0.00        1     0.00     0.00  init_input
  0.00      0.02     0.00        1     0.00     0.00  init_scope_gc
  0.00      0.02     0.00        1     0.00     0.00  make_sure_quit
  0.00      0.02     0.00        1     0.00     0.00  oscilloscope_resize
  0.00      0.02     0.00        1     0.00     0.00  rb_new
  0.00      0.02     0.00        1     0.00     0.00  read_configfile
  0.00      0.02     0.00        1     0.00     0.00  read_esd_input
  0.00      0.02     0.00        1     0.00 10000.00  scdaq_init
  0.00      0.02     0.00        1     0.00     0.00  spectragram_resize
  0.00      0.02     0.00        1     0.00     0.00  spinner_create
  0.00      0.02     0.00        1     0.00     0.00  startDAQ



-- 
Cyrus Patel - cyrus@linuxfan.com
Dept. of Computer Engineering                             Debian GNU/Linux 
University of New South Wales                             (Woody)
Sydney, Australia.                                        ICQ: 50738541	
http://www.cyrusp.com  Mobile: +61 0402 266 731 cyrusmobile@linuxfreak.com



Reply to: