memsearch

Search for duplicate strings in memory snapshots

Usage no npm install needed!

<script type="module">
  import memsearch from 'https://cdn.skypack.dev/memsearch';
</script>

README

MemSearch

Build Status dependencies Status devDependencies Status

memsearch is a simple CLI tool to find duplicate strings in your memory snapshots.

After you find leaked strings, it is usually really simple to find the leak source.

I recommend taking 3 snapshots ore more for best results.

Install

npm i -g memsearch

Usage

memsearch -h
Usage: memsearch <command> [options]

Commands:
  index.js compare  Compare snapshots and show repeated strings

Options:
  --version      Show version number                                   [boolean]
  -f, --file     output file                                            [string]
  -d, --dir      input directory                             [string] [required]
  -e, --exclude  exclude strings with this substring(s)                  [array]
  --min          minimal string length                    [number] [default: 20]
  --max          maximal string length                   [number] [default: 500]
  -h, --help     Show help                                             [boolean]

Examples:
  memsearch compare -d . -f res.txt  find all dumps in current directory,
                                     process and save output to res.txt