2013-05-14 23:48:54 +08:00
|
|
|
================
|
|
|
|
LeakSanitizer
|
|
|
|
================
|
|
|
|
|
|
|
|
.. contents::
|
|
|
|
:local:
|
|
|
|
|
|
|
|
Introduction
|
|
|
|
============
|
|
|
|
|
2013-12-11 04:10:30 +08:00
|
|
|
LeakSanitizer is a run-time memory leak detector. It can be combined with
|
|
|
|
:doc:`AddressSanitizer` to get both memory error and leak detection.
|
|
|
|
LeakSanitizer does not introduce any additional slowdown when used in this mode.
|
|
|
|
The LeakSanitizer runtime can also be linked in separately to get leak detection
|
|
|
|
only, at a minimal performance cost.
|
2013-05-14 23:48:54 +08:00
|
|
|
|
|
|
|
Current status
|
|
|
|
==============
|
|
|
|
|
2013-12-11 04:10:30 +08:00
|
|
|
LeakSanitizer is experimental and supported only on x86\_64 Linux.
|
|
|
|
|
|
|
|
The combined mode has been tested on fairly large software projects. The
|
|
|
|
stand-alone mode has received much less testing.
|
|
|
|
|
|
|
|
There are plans to support LeakSanitizer in :doc:`MemorySanitizer` builds.
|
2013-05-14 23:48:54 +08:00
|
|
|
|
|
|
|
More Information
|
|
|
|
================
|
|
|
|
|
2013-12-01 05:54:43 +08:00
|
|
|
`https://code.google.com/p/address-sanitizer/wiki/LeakSanitizer
|
|
|
|
<https://code.google.com/p/address-sanitizer/wiki/LeakSanitizer>`_
|
2013-05-14 23:48:54 +08:00
|
|
|
|