profile.txt 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. Notes on rsync profiling
  2. strlcpy is hot:
  3. 0.00 0.00 1/7735635 push_dir [68]
  4. 0.00 0.00 1/7735635 pop_dir [71]
  5. 0.00 0.00 1/7735635 send_file_list [15]
  6. 0.01 0.00 18857/7735635 send_files [4]
  7. 0.04 0.00 129260/7735635 send_file_entry [18]
  8. 0.04 0.00 129260/7735635 make_file [20]
  9. 0.04 0.00 141666/7735635 send_directory <cycle 1> [36]
  10. 2.29 0.00 7316589/7735635 f_name [13]
  11. [14] 11.7 2.42 0.00 7735635 strlcpy [14]
  12. Here's the top few functions:
  13. 46.23 9.57 9.57 13160929 0.00 0.00 mdfour64
  14. 14.78 12.63 3.06 13160929 0.00 0.00 copy64
  15. 11.69 15.05 2.42 7735635 0.00 0.00 strlcpy
  16. 10.05 17.13 2.08 41438 0.05 0.38 sum_update
  17. 4.11 17.98 0.85 13159996 0.00 0.00 mdfour_update
  18. 1.50 18.29 0.31 file_compare
  19. 1.45 18.59 0.30 129261 0.00 0.01 send_file_entry
  20. 1.23 18.84 0.26 2557585 0.00 0.00 f_name
  21. 1.11 19.07 0.23 1483750 0.00 0.00 u_strcmp
  22. 1.11 19.30 0.23 118129 0.00 0.00 writefd_unbuffered
  23. 0.92 19.50 0.19 1085011 0.00 0.00 writefd
  24. 0.43 19.59 0.09 156987 0.00 0.00 read_timeout
  25. 0.43 19.68 0.09 129261 0.00 0.00 clean_fname
  26. 0.39 19.75 0.08 32887 0.00 0.38 matched
  27. 0.34 19.82 0.07 1 70.00 16293.92 send_files
  28. 0.29 19.89 0.06 129260 0.00 0.00 make_file
  29. 0.29 19.95 0.06 75430 0.00 0.00 read_unbuffered
  30. mdfour could perhaps be made faster:
  31. /* NOTE: This code makes no attempt to be fast! */
  32. There might be an optimized version somewhere that we can borrow.