Skip to content

Instantly share code, notes, and snippets.

View evantorrie's full-sized avatar

ET evantorrie

  • Mountain View, CA
View GitHub Profile
@evantorrie
evantorrie / keepalive-leak.js
Created December 6, 2016 00:42
Sample code that demonstrates uncollectible ClientRequests from keepAlive freeSockets
'use strict';
const heapdump=require('heapdump');
const assert = require('assert');
const http = require('http');
const PORT=8089;
const kMaxUsedSockets=10;
const kMaxFreeSockets=9;
const agent = new http.Agent({
@evantorrie
evantorrie / desired.sh
Created January 13, 2017 02:21
nyc eager instantiation of instrumentation library
[18:20] evant@localhost:nodejs-cli-profiler$ rm -fr node_modules/.cache/; !!
rm -fr node_modules/.cache/; node node_modules/jenkins-mocha/node_modules/.bin/nyc --eager --reporter lcov --report-dir ./artifacts/coverage -- node_modules/jenkins-mocha/node_modules/.bin/_mocha --reporter node_modules/jenkins-mocha/node_modules/spec-xunit-file/index.js --colors test/profiler.test.js
CPU Profiler
Initialization
✓ should instantiate a new Profiler object
✓ sets version correctly
✓ sets devtoolsFrontendURL correctly
✓ fails if the type of connection is not to "node"
@evantorrie
evantorrie / # watchman - 2017-09-25_19-06-45.txt
Created September 26, 2017 02:27
watchman on macOS 10.12.6 - Homebrew build logs
Homebrew build logs for watchman on macOS 10.12.6
Build date: 2017-09-25 19:06:45
### Keybase proof
I hereby claim:
* I am evantorrie on github.
* I am etorrie (https://keybase.io/etorrie) on keybase.
* I have a public key ASCk5oJhJL3ZdoPnaHJXP2byzj_xxTJVIjybJGepH79gcQo
To claim this, I am signing this object: