With a single import _ "net/http/pprof" you can add profiling endpoints to a
HTTP server.
package main
import (
"fmt"| # Some options for our Zsh history. These will set our history to allow | |
| # a ton more entires, ignore duplicate commands, and ignore some of the | |
| # commands we don’t need a history of. This is useful because if you | |
| # want to search for that command you ran a few weeks ago, you can do | |
| # that a lot easier. | |
| export HISTSIZE=32768; | |
| export HISTFILESIZE=$HISTSIZE; | |
| export HISTCONTROL=ignoredups; | |
| export HISTIGNORE="ls:cd:cd -:pwd:exit:date:* --help"; |
PASS test\successful-files.test.js
cosmiconfig.load
sync
√ loads defined JSON config path (4ms)
√ loads defined YAML config path (1ms)
√ loads defined JS config path (2ms)
√ loads modularized JS file (2ms)
√ runs transform (5ms)
√ does not swallow transform errors (1ms)
| PUT twitter | |
| { | |
| "settings": { | |
| "number_of_shards": 1, | |
| "number_of_replicas": 1 | |
| }, | |
| "mappings": { | |
| "tweet": { | |
| "properties": { | |
| "user": { |
| function cssLoaders(options = {}) { | |
| const defaultLoaderOptions = !_.has(options, 'sourceMap') ? false : { sourceMap: options.sourceMap }; | |
| const cssLoader = { | |
| loader: 'css-loader', | |
| options: { | |
| sourceMap: options.sourceMap, | |
| minimize: nodeEnv === 'production' | |
| } | |
| }; |