This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ cat foo.js | |
| 'use strict'; | |
| const asyncHooks = require('async_hooks'); | |
| const { writeSync } = require('fs'); | |
| const Memcached = require('memcached'); | |
| function debugHooks(types) { | |
| // will contain metadata for all tracked events |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 'use strict'; | |
| const fs = require('fs'); | |
| const AH = require('async_hooks'); | |
| const net = require('net'); | |
| const { inspect } = require('util'); | |
| function log(...args) { | |
| fs.writeSync(process.stdout.fd, `${args.map(x => inspect(x, { depth: null, colors: true })).join(' ')}\n`); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require "option_parser" | |
| require "http/params" | |
| def_fields = "ip,ident,user,year,mon,day,hour,min,sec,method,path,query," + | |
| "http,code,bytes,referrer,ua" | |
| quiet = false | |
| fields_str = def_fields | |
| output = STDOUT | |
| print_header = false | |
| DASH_FIELDS = %w(ident user referrer ua bytes) |
OlderNewer