0
0
mirror of https://github.com/nodejs/node.git synced 2024-11-29 15:06:33 +01:00
nodejs/doc/api
Anna Henningsen 932c824c60
events: make memory leak warning more accessible
This makes the famous `EventEmitter memory leak` warnings occurring
when the listener count for a given event exceeds a specified number
more programatically accessible, by giving them properties referring
to the event emitter instance and the event itself.

This can be useful for debugging the origins of such a warning when
the stack itself doesn’t reveal enough information about the event
emitter instance itself, e.g. when manual inspection of the
already-registered listeners is expected to be useful.

PR-URL: https://github.com/nodejs/node/pull/8298
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Jeremiah Senkpiel <Fishrock123@rocketmail.com>
2016-08-30 17:02:51 +02:00
..
_toc.md doc: subdivide TOC, add auxiliary links 2016-04-29 13:27:18 -04:00
addons.md doc: remove extra spaces and concats in examples 2016-07-29 09:12:17 -07:00
all.md doc: git mv to .md 2016-04-20 16:34:27 -07:00
assert.md doc: use blockquotes for Stability: markers 2016-08-04 22:43:34 +02:00
buffer.md doc: fix buf.readUIntBE, buf.readUIntLE examples 2016-08-25 07:24:41 +02:00
child_process.md doc: 'ipc' is required with fork stdio option 2016-08-29 15:20:35 -07:00
cli.md 2016-08-15, Version 6.4.0 (Current) 2016-08-16 10:36:00 -04:00
cluster.md doc: fix cluster message event docs 2016-08-10 09:11:22 -04:00
console.md doc: use blockquotes for Stability: markers 2016-08-04 22:43:34 +02:00
crypto.md crypto: remove POINT_CONVERSION_HYBRID from documentation. 2016-08-26 21:45:26 -07:00
debugger.md doc: use blockquotes for Stability: markers 2016-08-04 22:43:34 +02:00
dgram.md doc: add added: information for dgram 2016-08-25 10:56:28 -07:00
dns.md doc: use blockquotes for Stability: markers 2016-08-04 22:43:34 +02:00
documentation.md doc: use blockquotes for Stability: markers 2016-08-04 22:43:34 +02:00
domain.md doc: use blockquotes for Stability: markers 2016-08-04 22:43:34 +02:00
errors.md doc: various documentation formatting fixes 2016-07-14 12:26:50 +03:00
events.md events: make memory leak warning more accessible 2016-08-30 17:02:51 +02:00
fs.md doc: improve fs.truncate functions' documentation 2016-08-27 19:51:20 +05:30
globals.md doc: use blockquotes for Stability: markers 2016-08-04 22:43:34 +02:00
http.md http: remove deprecated Client interface 2016-08-29 21:44:58 -04:00
https.md doc: use blockquotes for Stability: markers 2016-08-04 22:43:34 +02:00
index.md doc: git mv to .md 2016-04-20 16:34:27 -07:00
modules.md doc: add added: information for modules 2016-08-27 16:19:26 +02:00
net.md doc: doc that listen can be called multiple times 2016-08-29 15:32:32 -07:00
os.md doc: use blockquotes for Stability: markers 2016-08-04 22:43:34 +02:00
path.md doc: use blockquotes for Stability: markers 2016-08-04 22:43:34 +02:00
process.md doc: correct argument type for process.cpuUsage 2016-08-22 11:38:25 +02:00
punycode.md doc: use blockquotes for Stability: markers 2016-08-04 22:43:34 +02:00
querystring.md doc: fix "hashOwnProperty" typo in querystring 2016-08-15 10:42:38 -07:00
readline.md doc: readline write() is processed as input 2016-08-29 15:29:59 -07:00
repl.md repl: Add editor mode support 2016-08-06 19:41:35 +05:30
stream.md doc: fix onReadable reentry after unshift called 2016-08-26 21:59:55 -07:00
string_decoder.md doc: use blockquotes for Stability: markers 2016-08-04 22:43:34 +02:00
synopsis.md doc: various documentation formatting fixes 2016-07-14 12:26:50 +03:00
timers.md doc: fix "timout" typo in timeout 2016-08-25 07:23:28 +02:00
tls.md doc: use blockquotes for Stability: markers 2016-08-04 22:43:34 +02:00
tty.md doc: use blockquotes for Stability: markers 2016-08-04 22:43:34 +02:00
url.md doc: use blockquotes for Stability: markers 2016-08-04 22:43:34 +02:00
util.md util: improve function signature of util._extend 2016-08-26 18:53:39 +05:30
v8.md doc: various documentation formatting fixes 2016-07-14 12:26:50 +03:00
vm.md doc: fix typo in vm.runInNewContext() description 2016-08-09 11:31:46 -07:00
zlib.md doc: use blockquotes for Stability: markers 2016-08-04 22:43:34 +02:00