Flat profile:

Each sample counts as 0.01 seconds.
  %   cumulative   self              self     total           
 time   seconds   seconds    calls  ms/call  ms/call  name    
 45.88      3.12     3.12        1  3120.00  4890.00  sort
 26.03      4.89     1.77 12171460     0.00     0.00  swap
 24.41      6.55     1.66                             internal_mcount
  1.62      6.66     0.11        1   110.00   190.00  fillArray
  1.18      6.74     0.08  1000000     0.00     0.00  rand
  0.74      6.79     0.05                             mcount
  0.15      6.80     0.01                             _mcount
  0.00      6.80     0.00       16     0.00     0.00  _return_zero
  0.00      6.80     0.00        8     0.00     0.00  mutex_lock
  0.00      6.80     0.00        8     0.00     0.00  mutex_unlock
  0.00      6.80     0.00        2     0.00     0.00  _fflush_u
  0.00      6.80     0.00        2     0.00     0.00  atexit
  0.00      6.80     0.00        2     0.00     0.00  get_mem
  0.00      6.80     0.00        1     0.00     0.00  _atexit_init
  0.00      6.80     0.00        1     0.00     0.00  _exithandle
  0.00      6.80     0.00        1     0.00     0.00  _fflush_u_iops
  0.00      6.80     0.00        1     0.00     0.00  exit
  0.00      6.80     0.00        1     0.00     0.00  fflush
  0.00      6.80     0.00        1     0.00     0.00  free_mem
  0.00      6.80     0.00        1     0.00     0.00  lseek64
  0.00      6.80     0.00        1     0.00  5080.00  main
  0.00      6.80     0.00        1     0.00     0.00  mem_init
  0.00      6.80     0.00        1     0.00     0.00  profil

			Call graph


granularity: each sample hit covers 4 byte(s) for 0.15% of 6.74 seconds

index % time    self  children    called     name
                0.00    5.08       1/1           _start [2]
[1]     75.4    0.00    5.08       1         main [1]
                3.12    1.77       1/1           sort [3]
                0.11    0.08       1/1           fillArray [6]
-----------------------------------------------
                                                 <spontaneous>
[2]     75.4    0.00    5.08                 _start [2]
                0.00    5.08       1/1           main [1]
                0.00    0.00       1/2           atexit [10]
                0.00    0.00       1/1           exit [12]
-----------------------------------------------
                             1934466             sort [3]
                3.12    1.77       1/1           main [1]
[3]     72.6    3.12    1.77       1+1934466 sort [3]
                1.77    0.00 12171460/12171460     swap [4]
                             1934466             sort [3]
-----------------------------------------------
                1.77    0.00 12171460/12171460     sort [3]
[4]     26.3    1.77    0.00 12171460         swap [4]
-----------------------------------------------
                                                 <spontaneous>
[5]     24.6    1.66    0.00                 internal_mcount [5]
                0.00    0.00       1/2           atexit [10]
-----------------------------------------------
                0.11    0.08       1/1           main [1]
[6]      2.8    0.11    0.08       1         fillArray [6]
                0.08    0.00 1000000/1000000     rand [7]
-----------------------------------------------
                0.08    0.00 1000000/1000000     fillArray [6]
[7]      1.2    0.08    0.00 1000000         rand [7]
-----------------------------------------------
                0.00    0.00       1/8           free_mem [14]
                0.00    0.00       2/8           atexit [10]
                0.00    0.00       2/8           get_mem [11]
                0.00    0.00       3/8           _exithandle [455]
[8]      0.0    0.00    0.00       8         mutex_lock [8]
                0.00    0.00       8/16          _return_zero [452]
-----------------------------------------------
                0.00    0.00       1/8           free_mem [14]
                0.00    0.00       2/8           atexit [10]
                0.00    0.00       2/8           get_mem [11]
                0.00    0.00       3/8           _exithandle [455]
[9]      0.0    0.00    0.00       8         mutex_unlock [9]
                0.00    0.00       8/16          _return_zero [452]
-----------------------------------------------
                0.00    0.00       1/2           _start [2]
                0.00    0.00       1/2           internal_mcount [5]
[10]     0.0    0.00    0.00       2         atexit [10]
                0.00    0.00       2/2           get_mem [11]
                0.00    0.00       2/8           mutex_lock [8]
                0.00    0.00       2/8           mutex_unlock [9]
-----------------------------------------------
                0.00    0.00       2/2           atexit [10]
[11]     0.0    0.00    0.00       2         get_mem [11]
                0.00    0.00       2/8           mutex_lock [8]
                0.00    0.00       2/8           mutex_unlock [9]
                0.00    0.00       1/1           mem_init [16]
-----------------------------------------------
                0.00    0.00       1/1           _start [2]
[12]     0.0    0.00    0.00       1         exit [12]
                0.00    0.00       1/1           _exithandle [455]
-----------------------------------------------
                0.00    0.00       1/1           _cleanup [621]
[13]     0.0    0.00    0.00       1         fflush [13]
                0.00    0.00       1/1           _fflush_u_iops [456]
-----------------------------------------------
                0.00    0.00       1/1           _exithandle [455]
[14]     0.0    0.00    0.00       1         free_mem [14]
                0.00    0.00       1/8           mutex_lock [8]
                0.00    0.00       1/8           mutex_unlock [9]
-----------------------------------------------
                0.00    0.00       1/1           _fflush_u [453]
[15]     0.0    0.00    0.00       1         lseek64 [15]
-----------------------------------------------
                0.00    0.00       1/1           get_mem [11]
[16]     0.0    0.00    0.00       1         mem_init [16]
-----------------------------------------------
                0.00    0.00       1/1           moncontrol [184]
[17]     0.0    0.00    0.00       1         profil [17]
-----------------------------------------------
                0.00    0.00       8/16          mutex_lock [8]
                0.00    0.00       8/16          mutex_unlock [9]
[452]    0.0    0.00    0.00      16         _return_zero [452]
-----------------------------------------------
                0.00    0.00       2/2           _fflush_u_iops [456]
[453]    0.0    0.00    0.00       2         _fflush_u [453]
                0.00    0.00       1/1           lseek64 [15]
-----------------------------------------------
                0.00    0.00       1/1           <locore> (25)
[454]    0.0    0.00    0.00       1         _atexit_init [454]
-----------------------------------------------
                0.00    0.00       1/1           exit [12]
[455]    0.0    0.00    0.00       1         _exithandle [455]
                0.00    0.00       3/8           mutex_lock [8]
                0.00    0.00       3/8           mutex_unlock [9]
                0.00    0.00       1/1           free_mem [14]
-----------------------------------------------
                0.00    0.00       1/1           fflush [13]
[456]    0.0    0.00    0.00       1         _fflush_u_iops [456]
                0.00    0.00       2/2           _fflush_u [453]
-----------------------------------------------

Index by function name

 [454] _atexit_init           [13] fflush                 [16] mem_init
 [455] _exithandle             [6] fillArray               [8] mutex_lock
 [453] _fflush_u              [14] free_mem                [9] mutex_unlock
 [456] _fflush_u_iops         [11] get_mem                [17] profil
 (704) _mcount                 [5] internal_mcount (gmon-sol2.c) [7] rand
 [452] _return_zero           [15] lseek64                 [3] sort
  [10] atexit                  [1] main                    [4] swap
  [12] exit                  (175) mcount
