Performance:Leak Tools: Difference between revisions

m
→‎trace-malloc with diffbloatdump: trace-malloc no longer linux-only
m (→‎trace-malloc with diffbloatdump: trace-malloc no longer linux-only)
Line 157: Line 157:
==== trace-malloc with diffbloatdump ====
==== trace-malloc with diffbloatdump ====


The best way I know to do this is with [http://www.mozilla.org/performance/leak-brownbag.html#enabling-trace-malloc trace-malloc]. In a Linux build with trace-malloc enabled you can dump the existing allocations to a file by calling the function TraceMallocDumpAllocations from JavaScript (which is equivalent to calling NS_TraceMallocDumpAllocations from C. The following web page will allow dumping of allocations:
The best way I know to do this is with [http://www.mozilla.org/performance/leak-brownbag.html#enabling-trace-malloc trace-malloc]. In a build with trace-malloc enabled you can dump the existing allocations to a file by calling the function TraceMallocDumpAllocations from JavaScript (which is equivalent to calling NS_TraceMallocDumpAllocations from C. The following web page will allow dumping of allocations:


  <script type="text/javascript">
  <script type="text/javascript">
canmove, Confirmed users, Bureaucrats and Sysops emeriti
1,334

edits