Baike.dev
All toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
D

drool

> 编程语言
Open source

Automated memory leak detection and analysis

1.5K stars0 likes2 views
WebsiteGitHub

About

Automated memory leak detection and analysis

Drool is an automation layer that is used to measure if a set of "clean" actions results in a DOM and or Listener leak.

View the API Docs

-------------- #### Real World wins Drool has made it far easier to identify memory leaks in an automated and reproducible way, for example: * TodoMVC * [JSBlocks](https://github.com/tastejs/todomvc/pull/1297#issuecomment-112828342) * [Atma.js](https://github.com/tastejs/todomvc/pull/1337#issuecomment-112821596) * [Automated leak based CI failures](https://github.com/tastejs/todomvc/pull/1464) * Chromium * [Core input element node leak](https://code.google.com/p/chromium/issues/detail?id=516153) * Material Design Lite * [Menu Component Leaking Listeners](https://github.com/google/material-design-lite/issues/761) * Beaker Notebook * [CI memory smoketest on every PR](https://github.com/twosigma/beaker-notebook/blob/9298ccf33e646638f8a588405fa8fa5919742636/test/memory-tests.js) ##### Why am I making this? After running perf/memory tests across multiple [todomvc](https://github.com/tastejs/todomvc) implementations, I found that almost all implementations have significant memory leaks on the most basic of tasks. Worse yet, most of these leaks were introduced at a framework level, or were introduced by "expert/(framework authors)". The question arose in my mind, if people who authored a framework are introducing leaks in the most trivial of applications, how can users be expected to create non-leaking implementations of much more complex applications. ##### Goals Ideally Drool will leverage standard interfaces, such as todomvc, to test for leaks at a framework level. The result of which should help framework authors and developers realize that memory leaks are pervasive in the tools that we use. Chrome devtools is a powerful utility layer for detecting memory issues, yet the fact still stands that most developers do not know how to use the tooling around it to arrive any thing that is directly actionable. Drool aims to be a generic automated abstraction layer, so people can get good "numbers" in a consistent way without having to deep dive into memory profiling. ##### Running Ensure that you have at least version `2.26.436421` of chromedriver. ``` … ``` [View the API Docs](docs/api.md)

GitHub Issues· 9 open

View all on GitHub
  • #41

    Integration with existing selenium tests

    Updated Feb 9, 2019
  • #38

    License

    Updated Nov 16, 2017
  • #31

    Replace webdriver with chrome-launcher

    Updated Jul 13, 2017
  • #29

    Not terminating all processes?

    Updated Jun 11, 2016
  • #25

    Dealing with chrome's undo stack

    chrome-bugUpdated Jan 22, 2016
  • #14

    Expose a way to dump a before and after heap snapshot

    enhancementUpdated Oct 12, 2015
  • #9

    expose controlFlow method

    enhancementUpdated Aug 13, 2015
  • #8

    I should be able to catch errors in a single place

    enhancementUpdated Aug 6, 2015
  • #5

    Add a delta helper.

    enhancementUpdated Aug 2, 2015

Highlights

  • •JSBlocks
  • •Automated leak based CI failures
  • •Chromium
  • •Core input element node leak
  • •Material Design Lite
  • •Menu Component Leaking Listeners
  • •Beaker Notebook
  • •CI memory smoketest on every PR

> Tags

JavaScript

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言