diff options
author | Ondrej Fabry <ofabry@cisco.com> | 2019-09-17 12:41:47 +0200 |
---|---|---|
committer | Ondrej Fabry <ofabry@cisco.com> | 2019-10-03 12:54:22 +0200 |
commit | 809b69ea4a90455445c34bbad7d8e5fea5cf3462 (patch) | |
tree | ba4b94339ac83908e2d9933692dc373929380aa7 /Makefile | |
parent | 48198748bdfcc7d30c794cdac19de822da53f840 (diff) |
Optimizations for statsclient
- this dramatically improves performance for stats data collection
- memory allocation is now done only when stat dirs change
- updating prepared stat dir does not need to allocate memory
- created integration test for testing stats client
- added NumWorkerThreads and VectorRatePerWorker to SystemStats
- added ReduceSimpleCounterStatIndex, ReduceCombinedCounterStatIndex for
aggregating specific index
Change-Id: I702731a69024ab5dd0832bb5cfe2773a987359e5
Signed-off-by: Ondrej Fabry <ofabry@cisco.com>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 16 |
1 files changed, 10 insertions, 6 deletions
@@ -43,11 +43,11 @@ build: examples: @echo "=> building examples" - cd examples/simple-client && $(GO) build ${GO_BUILD_ARGS} -v - cd examples/stats-api && $(GO) build ${GO_BUILD_ARGS} -v cd examples/perf-bench && $(GO) build ${GO_BUILD_ARGS} -v - cd examples/union-example && $(GO) build ${GO_BUILD_ARGS} -v cd examples/rpc-service && $(GO) build ${GO_BUILD_ARGS} -v + cd examples/simple-client && $(GO) build ${GO_BUILD_ARGS} -v + cd examples/stats-client && $(GO) build ${GO_BUILD_ARGS} -v + cd examples/union-example && $(GO) build ${GO_BUILD_ARGS} -v clean: @echo "=> cleaning" @@ -56,8 +56,12 @@ clean: test: @echo "=> running tests" - $(GO) test -v ./cmd/... - $(GO) test -v ./ ./api ./adapter ./codec ./core + $(GO) test ${GO_BUILD_ARGS} ./cmd/... + $(GO) test ${GO_BUILD_ARGS} ./ ./api ./adapter ./codec ./core + +test-integration: + @echo "=> running integration tests" + $(GO) test ${GO_BUILD_ARGS} ./test/integration lint: @echo "=> running linter" @@ -87,6 +91,6 @@ extras: .PHONY: all \ - install build examples clean test lint \ + install build examples clean test test-integration lint \ generate generate-binapi gen-binapi-docker \ extras |