Sergey Matveev | 4a25a62 | 2013-05-14 15:48:54 +0000 | [diff] [blame] | 1 | ================ |
| 2 | LeakSanitizer |
| 3 | ================ |
| 4 | |
| 5 | .. contents:: |
| 6 | :local: |
| 7 | |
| 8 | Introduction |
| 9 | ============ |
| 10 | |
Sergey Matveev | f657846 | 2013-12-10 20:13:58 +0000 | [diff] [blame] | 11 | LeakSanitizer is a run-time memory leak detector. It can be combined with |
| 12 | :doc:`AddressSanitizer` to get both memory error and leak detection. |
| 13 | LeakSanitizer does not introduce any additional slowdown when used in this mode. |
| 14 | The LeakSanitizer runtime can also be linked in separately to get leak detection |
| 15 | only, at a minimal performance cost. |
Sergey Matveev | 4a25a62 | 2013-05-14 15:48:54 +0000 | [diff] [blame] | 16 | |
| 17 | Current status |
| 18 | ============== |
| 19 | |
Sergey Matveev | f657846 | 2013-12-10 20:13:58 +0000 | [diff] [blame] | 20 | LeakSanitizer is experimental and supported only on x86\_64 Linux. |
| 21 | |
| 22 | The combined mode has been tested on fairly large software projects. The |
| 23 | stand-alone mode has received much less testing. |
| 24 | |
| 25 | There are plans to support LeakSanitizer in :doc:`MemorySanitizer` builds. |
Sergey Matveev | 4a25a62 | 2013-05-14 15:48:54 +0000 | [diff] [blame] | 26 | |
| 27 | More Information |
| 28 | ================ |
| 29 | |
Sergey Matveev | ed14aa7 | 2013-11-30 22:08:15 +0000 | [diff] [blame] | 30 | `https://code.google.com/p/address-sanitizer/wiki/LeakSanitizer |
| 31 | <https://code.google.com/p/address-sanitizer/wiki/LeakSanitizer>`_ |
Sergey Matveev | 4a25a62 | 2013-05-14 15:48:54 +0000 | [diff] [blame] | 32 | |