Plan 9 from Bell Labs’s /usr/web/sources/contrib/axel/leak/readme

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


[since I posted on 9fans leak here has changed a bit. and again]

leak is leak(1) extended in two ways:
 1) instead of only printing information about leaked blocks,
     it now also prints information about all allocated blocks,
     not just the leaked one (when given flag -a) and about
     all free (freed?) blocks (when given flag -d).
 2) in addition to just listing the blocks (the default) or
     counting how many blocks have the same
     malloc tag (when given flag -s), it now can also
     sum the sizes of the blocks that have the same
     malloc tag (when given flag -c).
     with -c it prints following columns:
           src-location // sum  nrofcalls  sum/nrofcalls
     (todo: also take realloc tag into account for blocks
      with zero malloc tag???)

so: 'info' flags [no flag], -a and -d influence what
information is given (leaks, allocated blocks, free blocks),
and 'presentation' flags [no flag], -s and -c influence
how the information is presented.
as before, the -b flag gives a graphical view of all memory.

The -b flag cannot be combined with -s, -c, -a or -b.
Only one of -s or -c should be used.
However, the -a and -d flags can be used alone or together,
and the 'info' flags and 'presentation' flags can be combined.


depending on my understanding of how leak(1)
works this works nicely or completely misses
the point.

older perl based version in directory perlbased.

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to [email protected].