Performance:Leak Tools: Difference between revisions

Jump to navigation Jump to search
→‎Tips: Add tips section
(→‎Tips: Add tips section)
Line 174: Line 174:
  Maximum Heap Size: 7751799 bytes
  Maximum Heap Size: 7751799 bytes
  62095212 bytes were allocated in 391091 allocations.
  62095212 bytes were allocated in 391091 allocations.
== Tips ==
=== Disabling Arena Allocation ===
With many lower-level leak tools (particularly trace-malloc based ones, like leaksoup) it can be helpful to disable arena allocation of objects that you're interested in, when possible, so that each object is allocated with a separate call to malloc.  Some places you can do this are:
; layout engine : Define DEBUG_TRACEMALLOC_FRAMEARENA where it is commented out in layout/base/nsPresShell.cpp
; glib : Set the environment variable G_SLICE=always-malloc


== Other References ==
== Other References ==
canmove, Confirmed users, Bureaucrats and Sysops emeriti
1,334

edits

Navigation menu