-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
--pprof/-p
for skywire-node.
Possible values: - cpu - mem - mutex - block pprof-files will be generated on exit in ./logs/[--tag]/[mode].pprof To generate a report use `go tool pprof` E.g. ```bash $ ./bin/skywire-node ./integration/generic/nodeA.json --tag NodeA --pprof cpu $ go tool pprof --pdf ~/bin/skywire-node ./logs/nodeA/cpu.pprof ``` Run skywire-node with `--pprof http --pport 6060` (--pport has default value 6060 and could be ommitted when only one node profiled) E.g. ```bash $ skywire-node ./integration/generic/nodeA.json --tag NodeA --pprof http $ go tool http://localhost:6060/debug/pprof/ ``` Read: - https://golang.org/pkg/net/http/pprof/ - https://blog.golang.org/profiling-go-programs - https://godoc.org/github.com/pkg/profile Motivation: Need to switch on/off `-race` flag for various tests and various profiles. Now it's possible: ```bash $ export BUILD_OPTS= $ make build # or `make integration-build` ``` 2. Environment variable $TEST_OPTS with default value: "-race -tags no_ci -cover -timeout=5m" Motivation: - `-timeout=5m` - is a good, safe timeout for travis-ci - for developer environments it's more comfortable to use 60s (maximum 90s) Now it's possible: ```bash $ export TEST_OPTS="-race -tags no_ci -timeout=60s" 5:41 $ make test ```
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.