1. 1. Introduction
  2. 2. Getting started
  3. 3. Case study: Memory leak analysis
  4. 4. Common issues
  5. 5. Configuring the profiler
  6. 6. API reference
    1. 6.1. Globally available functions
      1. 6.1.1. allocations
      2. 6.1.2. maps
      3. 6.1.3. data
      4. 6.1.4. graph
      5. 6.1.5. info
      6. 6.1.6. load
      7. 6.1.7. println
      8. 6.1.8. h
      9. 6.1.9. m
      10. 6.1.10. s
      11. 6.1.11. ms
      12. 6.1.12. us
      13. 6.1.13. kb
      14. 6.1.14. mb
      15. 6.1.15. gb
      16. 6.1.16. argv
      17. 6.1.17. chdir
      18. 6.1.18. dirname
      19. 6.1.19. exit
      20. 6.1.20. mkdir_p
    2. 6.2. Allocation
      1. 6.2.1. allocated_at
      2. 6.2.2. backtrace
      3. 6.2.3. deallocated_at
    3. 6.3. AllocationList
      1. 6.3.1. - (operator)
      2. 6.3.2. + (operator)
      3. 6.3.3. & (operator)
      4. 6.3.4. [] (operator)
      5. 6.3.5. group_by_backtrace
      6. 6.3.6. len
      7. 6.3.7. only_address_at_least
      8. 6.3.8. only_address_at_most
      9. 6.3.9. only_alive_at
      10. 6.3.10. only_alive_for_at_least
      11. 6.3.11. only_alive_for_at_most
      12. 6.3.12. only_allocated_after_at_least
      13. 6.3.13. only_allocated_until_at_most
      14. 6.3.14. only_backtrace_length_at_least
      15. 6.3.15. only_backtrace_length_at_most
      16. 6.3.16. only_chain_alive_for_at_least
      17. 6.3.17. only_chain_alive_for_at_most
      18. 6.3.18. only_chain_length_at_least
      19. 6.3.19. only_chain_length_at_most
      20. 6.3.20. only_deallocated_after_at_least
      21. 6.3.21. only_deallocated_until_at_most
      22. 6.3.22. only_first_size_larger_or_equal
      23. 6.3.23. only_first_size_larger
      24. 6.3.24. only_first_size_smaller_or_equal
      25. 6.3.25. only_first_size_smaller
      26. 6.3.26. only_from_maps
      27. 6.3.27. only_group_allocations_at_least
      28. 6.3.28. only_group_allocations_at_most
      29. 6.3.29. only_group_interval_at_least
      30. 6.3.30. only_group_interval_at_most
      31. 6.3.31. only_group_leaked_allocations_at_least
      32. 6.3.32. only_group_leaked_allocations_at_most
      33. 6.3.33. only_group_max_total_usage_first_seen_at_least
      34. 6.3.34. only_group_max_total_usage_first_seen_at_most
      35. 6.3.35. only_jemalloc
      36. 6.3.36. only_larger_or_equal
      37. 6.3.37. only_larger
      38. 6.3.38. only_last_size_larger_or_equal
      39. 6.3.39. only_last_size_larger
      40. 6.3.40. only_last_size_smaller_or_equal
      41. 6.3.41. only_last_size_smaller
      42. 6.3.42. only_leaked_or_deallocated_after
      43. 6.3.43. only_leaked
      44. 6.3.44. only_matching_backtraces
      45. 6.3.45. only_not_jemalloc
      46. 6.3.46. only_not_matching_backtraces
      47. 6.3.47. only_not_passing_through_function
      48. 6.3.48. only_not_passing_through_source
      49. 6.3.49. only_passing_through_function
      50. 6.3.50. only_passing_through_source
      51. 6.3.51. only_ptmalloc_from_main_arena
      52. 6.3.52. only_ptmalloc_mmaped
      53. 6.3.53. only_ptmalloc_not_from_main_arena
      54. 6.3.54. only_ptmalloc_not_mmaped
      55. 6.3.55. only_smaller_or_equal
      56. 6.3.56. only_smaller
      57. 6.3.57. only_temporary
      58. 6.3.58. save_as_flamegraph
      59. 6.3.59. save_as_graph
    4. 6.4. AllocationGroupList
      1. 6.4.1. (iterator)
      2. 6.4.2. [] (operator)
      3. 6.4.3. len
      4. 6.4.4. only_all_leaked
      5. 6.4.5. only_count_at_least
      6. 6.4.6. sort_by_count_ascending
      7. 6.4.7. sort_by_count_descending
      8. 6.4.8. sort_by_count
      9. 6.4.9. sort_by_size_ascending
      10. 6.4.10. sort_by_size_descending
      11. 6.4.11. sort_by_size
      12. 6.4.12. take
      13. 6.4.13. ungroup
    5. 6.5. Backtrace
      1. 6.5.1. strip
    6. 6.6. Data
      1. 6.6.1. allocations
      2. 6.6.2. runtime
    7. 6.7. Duration
      1. 6.7.1. + (operator)
      2. 6.7.2. - (operator)
      3. 6.7.3. * (operator)
    8. 6.8. Graph
      1. 6.8.1. add
      2. 6.8.2. only_non_empty_series
      3. 6.8.3. save_each_series_as_flamegraph
      4. 6.8.4. save_each_series_as_graph
      5. 6.8.5. save
      6. 6.8.6. show_address_space
      7. 6.8.7. show_deallocations
      8. 6.8.8. show_live_allocations
      9. 6.8.9. show_memory_usage
      10. 6.8.10. show_new_allocations
      11. 6.8.11. show_rss
      12. 6.8.12. trim_left
      13. 6.8.13. trim_right
      14. 6.8.14. trim
      15. 6.8.15. start_at
      16. 6.8.16. end_at
      17. 6.8.17. with_gradient_color_scheme
      18. 6.8.18. without_axes
      19. 6.8.19. without_grid
      20. 6.8.20. without_legend
    9. 6.9. Map
      1. 6.9.1. allocated_at
      2. 6.9.2. backtrace
      3. 6.9.3. deallocated_at
    10. 6.10. MapList
      1. 6.10.1. len
      2. 6.10.2. only_address_at_least
      3. 6.10.3. only_address_at_most
      4. 6.10.4. only_alive_at
      5. 6.10.5. only_alive_for_at_least
      6. 6.10.6. only_alive_for_at_most
      7. 6.10.7. only_allocated_after_at_least
      8. 6.10.8. only_allocated_until_at_most
      9. 6.10.9. only_backtrace_length_at_least
      10. 6.10.10. only_backtrace_length_at_most
      11. 6.10.11. only_bytehound
      12. 6.10.12. only_deallocated_after_at_least
      13. 6.10.13. only_deallocated_until_at_most
      14. 6.10.14. only_executable
      15. 6.10.15. only_jemalloc
      16. 6.10.16. only_larger
      17. 6.10.17. only_larger_or_equal
      18. 6.10.18. only_leaked
      19. 6.10.19. only_leaked_or_deallocated_after
      20. 6.10.20. only_matching_backtraces
      21. 6.10.21. only_matching_deallocation_backtraces
      22. 6.10.22. only_not_bytehound
      23. 6.10.23. only_not_executable
      24. 6.10.24. only_not_jemalloc
      25. 6.10.25. only_not_matching_backtraces
      26. 6.10.26. only_not_matching_deallocation_backtraces
      27. 6.10.27. only_not_passing_through_function
      28. 6.10.28. only_not_passing_through_source
      29. 6.10.29. only_not_readable
      30. 6.10.30. only_not_writable
      31. 6.10.31. only_passing_through_function
      32. 6.10.32. only_passing_through_source
      33. 6.10.33. only_peak_rss_at_least
      34. 6.10.34. only_peak_rss_at_most
      35. 6.10.35. only_readable
      36. 6.10.36. only_smaller
      37. 6.10.37. only_smaller_or_equal
      38. 6.10.38. only_temporary
      39. 6.10.39. only_writable
      40. 6.10.40. - (operator)
      41. 6.10.41. + (operator)
      42. 6.10.42. & (operator)
      43. 6.10.43. [] (operator)

Memory profiling for fun and profit

AllocationGroupList::sort_by_size

Alias for sort_by_size_descending.