kubeshark/tap/extensions/redis
Nimrod Gilboa Markevich ab38f4c011
Add profiling tools (#1087)
* Add gin-contrib/pprof dependency

* Run pprof server on agent with --profiler flag

* Add --profiler flag to cli

* Fix error message

* Print cpu usage percentage

* measure cpu of current pid instead of globaly on the system

* Add scripts to plot performance

* Plot packetsCount in analysis

* Concat to DataFrame

* Plot in turbo colorscheme

* Make COLORMAP const

* Fix rss units

* Reduce code repetition by adding function for plotting

* Allow grouping based on filenames

* Temporary: Marked with comments where to disable code for experiments

* Add newline at end of file

* Add tap.cpuprofile flag. Change memprofile flag to tap.memprofile

* create tapper modes for debugging using env vars

* Fix rss plot units (MB instead of bytes)

* Remove comment

* Add info to plot script

* Remove tap.cpumemprofile. Rename tap.memprofile to memprofile

* Remove unused import

* Remove whitespaces

Co-authored-by: M. Mert Yıldıran <mehmet@up9.com>

* Remove whitespaces

Co-authored-by: M. Mert Yıldıran <mehmet@up9.com>

* Remove whitespaces

Co-authored-by: M. Mert Yıldıran <mehmet@up9.com>

* Remove whitespaces

Co-authored-by: M. Mert Yıldıran <mehmet@up9.com>

* Remove whitespaces

Co-authored-by: M. Mert Yıldıran <mehmet@up9.com>

* Remove whitespaces

Co-authored-by: M. Mert Yıldıran <mehmet@up9.com>

* Rename debug env vars

* Create package for debug env vars, read each env var once

* Run go mod tidy

* Increment MatchedPairs before emitting

* Only count cores once

* Count virtual and physical cores

* Add dbgctl replace in cli

* Fix lint: Check return values

* Add tap/dbgctl to test-lint make rule

* Replace tap/dbgctl in all modules

* #run_acceptance_tests

* Copy dbgctl module to docker image

* Debug/profile tapper benchmark (#1093)

* add mizu debug env to avoid all extensions

* add readme + run_tapper_benchmark.sh

* temporary change branch name

* fix readme

* fix MIZU_BENCHMARK_CLIENTS_COUNT env

* change tap target to tcp stream

* track live tcp streams

* pr fixes

* rename tapperPacketsCount to ignored_packets_count

* change mizu tapper to mizu debugg

Co-authored-by: David Levanon <dvdlevanon@gmail.com>
Co-authored-by: M. Mert Yıldıran <mehmet@up9.com>
2022-05-18 15:42:13 +03:00
..
errors.go Add ARM64 and cross-compilation support to the agent image (#659) 2022-01-25 21:24:50 +03:00
go.mod Add profiling tools (#1087) 2022-05-18 15:42:13 +03:00
go.sum Add unit tests for Redis dissector (#809) 2022-02-16 11:29:55 +02:00
handlers.go Refactor tap module to achieve synchronously closing other protocol dissectors upon identification (#1026) 2022-04-28 17:19:14 +03:00
helpers.go Add ARM64 and cross-compilation support to the agent image (#659) 2022-01-25 21:24:50 +03:00
main_test.go Refactor tap module to achieve synchronously closing other protocol dissectors upon identification (#1026) 2022-04-28 17:19:14 +03:00
main.go Refactor tap module to achieve synchronously closing other protocol dissectors upon identification (#1026) 2022-04-28 17:19:14 +03:00
Makefile Run unit tests when tap/api changes (#1016) 2022-04-19 08:51:32 +03:00
matcher.go TRA-4383 Calculate request and response sizes and display them instead of BodySize field (#897) 2022-03-21 19:34:59 +02:00
read.go Fix the Redis dissector (#739) 2022-02-01 13:24:56 +03:00
structs.go Add ARM64 and cross-compilation support to the agent image (#659) 2022-01-25 21:24:50 +03:00
tcp_reader_mock_test.go Spawn only two Goroutines per TCP stream (#1062) 2022-05-16 16:06:36 +03:00
tcp_stream_mock_test.go Spawn only two Goroutines per TCP stream (#1062) 2022-05-16 16:06:36 +03:00