├── .dockerignore ├── .gitignore ├── CMakeLists.txt ├── Dockerfile ├── LICENSE ├── README.md ├── arch.md ├── src ├── alloc.c ├── backend_carbon.c ├── backend_rest.c ├── backend_stdout.c ├── lens.c ├── lens_counter.c ├── lens_dist.c ├── lens_gauge.c ├── lens_histo.c ├── lens_quantile.c ├── optics.c ├── optics.h ├── optics.pc.in ├── optics_poller.pc.in ├── optics_poller_static.pc.in ├── optics_priv.h ├── optics_static.pc.in ├── opticsd.c ├── poller.c ├── poller_poll.c ├── poller_thread.c ├── region.c └── utils │ ├── bits.h │ ├── buffer.c │ ├── buffer.h │ ├── compiler.h │ ├── crest │ ├── crest.c │ ├── crest.h │ ├── path.c │ ├── req.c │ ├── resp.c │ └── router.c │ ├── errors.c │ ├── errors.h │ ├── htable.c │ ├── htable.h │ ├── key.c │ ├── lock.h │ ├── log.c │ ├── log.h │ ├── rng.c │ ├── rng.h │ ├── shm.c │ ├── shm.h │ ├── socket.c │ ├── socket.h │ ├── thread.c │ ├── thread.h │ ├── time.c │ ├── time.h │ ├── type_pun.h │ └── utils.c ├── test ├── backend_carbon_test.c ├── backend_rest_test.c ├── bench.c ├── bench.h ├── bench_bench.c ├── buffer_test.c ├── crest_path_test.c ├── crest_test.c ├── example.c ├── htable_bench.c ├── htable_test.c ├── key_test.c ├── lens_bench.c ├── lens_counter_bench.c ├── lens_counter_test.c ├── lens_dist_bench.c ├── lens_dist_test.c ├── lens_gauge_bench.c ├── lens_gauge_test.c ├── lens_histo_bench.c ├── lens_histo_test.c ├── lens_quantile_bench.c ├── lens_quantile_test.c ├── lens_test.c ├── poller_lens_test.c ├── poller_test.c ├── region_test.c ├── test.c ├── test.h ├── test_http.c ├── timer_bench.c └── timer_test.c └── tools ├── make-release └── rest_filter.sh /.dockerignore: -------------------------------------------------------------------------------- 1 | arch.md 2 | build 3 | Dockerfile 4 | LICENSE 5 | README.md 6 | tools 7 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RAttab/optics/HEAD/.gitignore -------------------------------------------------------------------------------- /CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RAttab/optics/HEAD/CMakeLists.txt -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RAttab/optics/HEAD/Dockerfile -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RAttab/optics/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RAttab/optics/HEAD/README.md -------------------------------------------------------------------------------- /arch.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RAttab/optics/HEAD/arch.md -------------------------------------------------------------------------------- /src/alloc.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RAttab/optics/HEAD/src/alloc.c -------------------------------------------------------------------------------- /src/backend_carbon.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RAttab/optics/HEAD/src/backend_carbon.c -------------------------------------------------------------------------------- /src/backend_rest.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RAttab/optics/HEAD/src/backend_rest.c -------------------------------------------------------------------------------- /src/backend_stdout.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RAttab/optics/HEAD/src/backend_stdout.c -------------------------------------------------------------------------------- /src/lens.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RAttab/optics/HEAD/src/lens.c -------------------------------------------------------------------------------- /src/lens_counter.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RAttab/optics/HEAD/src/lens_counter.c -------------------------------------------------------------------------------- /src/lens_dist.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RAttab/optics/HEAD/src/lens_dist.c -------------------------------------------------------------------------------- /src/lens_gauge.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RAttab/optics/HEAD/src/lens_gauge.c -------------------------------------------------------------------------------- /src/lens_histo.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RAttab/optics/HEAD/src/lens_histo.c -------------------------------------------------------------------------------- /src/lens_quantile.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RAttab/optics/HEAD/src/lens_quantile.c -------------------------------------------------------------------------------- /src/optics.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RAttab/optics/HEAD/src/optics.c -------------------------------------------------------------------------------- /src/optics.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RAttab/optics/HEAD/src/optics.h -------------------------------------------------------------------------------- /src/optics.pc.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RAttab/optics/HEAD/src/optics.pc.in -------------------------------------------------------------------------------- /src/optics_poller.pc.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RAttab/optics/HEAD/src/optics_poller.pc.in -------------------------------------------------------------------------------- /src/optics_poller_static.pc.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RAttab/optics/HEAD/src/optics_poller_static.pc.in -------------------------------------------------------------------------------- /src/optics_priv.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RAttab/optics/HEAD/src/optics_priv.h -------------------------------------------------------------------------------- /src/optics_static.pc.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RAttab/optics/HEAD/src/optics_static.pc.in -------------------------------------------------------------------------------- /src/opticsd.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RAttab/optics/HEAD/src/opticsd.c -------------------------------------------------------------------------------- /src/poller.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RAttab/optics/HEAD/src/poller.c -------------------------------------------------------------------------------- /src/poller_poll.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RAttab/optics/HEAD/src/poller_poll.c -------------------------------------------------------------------------------- /src/poller_thread.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RAttab/optics/HEAD/src/poller_thread.c -------------------------------------------------------------------------------- /src/region.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RAttab/optics/HEAD/src/region.c -------------------------------------------------------------------------------- /src/utils/bits.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RAttab/optics/HEAD/src/utils/bits.h -------------------------------------------------------------------------------- /src/utils/buffer.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RAttab/optics/HEAD/src/utils/buffer.c -------------------------------------------------------------------------------- /src/utils/buffer.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RAttab/optics/HEAD/src/utils/buffer.h -------------------------------------------------------------------------------- /src/utils/compiler.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RAttab/optics/HEAD/src/utils/compiler.h -------------------------------------------------------------------------------- /src/utils/crest/crest.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RAttab/optics/HEAD/src/utils/crest/crest.c -------------------------------------------------------------------------------- /src/utils/crest/crest.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RAttab/optics/HEAD/src/utils/crest/crest.h -------------------------------------------------------------------------------- /src/utils/crest/path.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RAttab/optics/HEAD/src/utils/crest/path.c -------------------------------------------------------------------------------- /src/utils/crest/req.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RAttab/optics/HEAD/src/utils/crest/req.c -------------------------------------------------------------------------------- /src/utils/crest/resp.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RAttab/optics/HEAD/src/utils/crest/resp.c -------------------------------------------------------------------------------- /src/utils/crest/router.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RAttab/optics/HEAD/src/utils/crest/router.c -------------------------------------------------------------------------------- /src/utils/errors.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RAttab/optics/HEAD/src/utils/errors.c -------------------------------------------------------------------------------- /src/utils/errors.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RAttab/optics/HEAD/src/utils/errors.h -------------------------------------------------------------------------------- /src/utils/htable.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RAttab/optics/HEAD/src/utils/htable.c -------------------------------------------------------------------------------- /src/utils/htable.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RAttab/optics/HEAD/src/utils/htable.h -------------------------------------------------------------------------------- /src/utils/key.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RAttab/optics/HEAD/src/utils/key.c -------------------------------------------------------------------------------- /src/utils/lock.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RAttab/optics/HEAD/src/utils/lock.h -------------------------------------------------------------------------------- /src/utils/log.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RAttab/optics/HEAD/src/utils/log.c -------------------------------------------------------------------------------- /src/utils/log.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RAttab/optics/HEAD/src/utils/log.h -------------------------------------------------------------------------------- /src/utils/rng.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RAttab/optics/HEAD/src/utils/rng.c -------------------------------------------------------------------------------- /src/utils/rng.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RAttab/optics/HEAD/src/utils/rng.h -------------------------------------------------------------------------------- /src/utils/shm.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RAttab/optics/HEAD/src/utils/shm.c -------------------------------------------------------------------------------- /src/utils/shm.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RAttab/optics/HEAD/src/utils/shm.h -------------------------------------------------------------------------------- /src/utils/socket.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RAttab/optics/HEAD/src/utils/socket.c -------------------------------------------------------------------------------- /src/utils/socket.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RAttab/optics/HEAD/src/utils/socket.h -------------------------------------------------------------------------------- /src/utils/thread.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RAttab/optics/HEAD/src/utils/thread.c -------------------------------------------------------------------------------- /src/utils/thread.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RAttab/optics/HEAD/src/utils/thread.h -------------------------------------------------------------------------------- /src/utils/time.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RAttab/optics/HEAD/src/utils/time.c -------------------------------------------------------------------------------- /src/utils/time.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RAttab/optics/HEAD/src/utils/time.h -------------------------------------------------------------------------------- /src/utils/type_pun.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RAttab/optics/HEAD/src/utils/type_pun.h -------------------------------------------------------------------------------- /src/utils/utils.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RAttab/optics/HEAD/src/utils/utils.c -------------------------------------------------------------------------------- /test/backend_carbon_test.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RAttab/optics/HEAD/test/backend_carbon_test.c -------------------------------------------------------------------------------- /test/backend_rest_test.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RAttab/optics/HEAD/test/backend_rest_test.c -------------------------------------------------------------------------------- /test/bench.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RAttab/optics/HEAD/test/bench.c -------------------------------------------------------------------------------- /test/bench.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RAttab/optics/HEAD/test/bench.h -------------------------------------------------------------------------------- /test/bench_bench.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RAttab/optics/HEAD/test/bench_bench.c -------------------------------------------------------------------------------- /test/buffer_test.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RAttab/optics/HEAD/test/buffer_test.c -------------------------------------------------------------------------------- /test/crest_path_test.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RAttab/optics/HEAD/test/crest_path_test.c -------------------------------------------------------------------------------- /test/crest_test.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RAttab/optics/HEAD/test/crest_test.c -------------------------------------------------------------------------------- /test/example.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RAttab/optics/HEAD/test/example.c -------------------------------------------------------------------------------- /test/htable_bench.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RAttab/optics/HEAD/test/htable_bench.c -------------------------------------------------------------------------------- /test/htable_test.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RAttab/optics/HEAD/test/htable_test.c -------------------------------------------------------------------------------- /test/key_test.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RAttab/optics/HEAD/test/key_test.c -------------------------------------------------------------------------------- /test/lens_bench.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RAttab/optics/HEAD/test/lens_bench.c -------------------------------------------------------------------------------- /test/lens_counter_bench.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RAttab/optics/HEAD/test/lens_counter_bench.c -------------------------------------------------------------------------------- /test/lens_counter_test.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RAttab/optics/HEAD/test/lens_counter_test.c -------------------------------------------------------------------------------- /test/lens_dist_bench.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RAttab/optics/HEAD/test/lens_dist_bench.c -------------------------------------------------------------------------------- /test/lens_dist_test.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RAttab/optics/HEAD/test/lens_dist_test.c -------------------------------------------------------------------------------- /test/lens_gauge_bench.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RAttab/optics/HEAD/test/lens_gauge_bench.c -------------------------------------------------------------------------------- /test/lens_gauge_test.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RAttab/optics/HEAD/test/lens_gauge_test.c -------------------------------------------------------------------------------- /test/lens_histo_bench.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RAttab/optics/HEAD/test/lens_histo_bench.c -------------------------------------------------------------------------------- /test/lens_histo_test.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RAttab/optics/HEAD/test/lens_histo_test.c -------------------------------------------------------------------------------- /test/lens_quantile_bench.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RAttab/optics/HEAD/test/lens_quantile_bench.c -------------------------------------------------------------------------------- /test/lens_quantile_test.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RAttab/optics/HEAD/test/lens_quantile_test.c -------------------------------------------------------------------------------- /test/lens_test.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RAttab/optics/HEAD/test/lens_test.c -------------------------------------------------------------------------------- /test/poller_lens_test.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RAttab/optics/HEAD/test/poller_lens_test.c -------------------------------------------------------------------------------- /test/poller_test.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RAttab/optics/HEAD/test/poller_test.c -------------------------------------------------------------------------------- /test/region_test.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RAttab/optics/HEAD/test/region_test.c -------------------------------------------------------------------------------- /test/test.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RAttab/optics/HEAD/test/test.c -------------------------------------------------------------------------------- /test/test.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RAttab/optics/HEAD/test/test.h -------------------------------------------------------------------------------- /test/test_http.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RAttab/optics/HEAD/test/test_http.c -------------------------------------------------------------------------------- /test/timer_bench.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RAttab/optics/HEAD/test/timer_bench.c -------------------------------------------------------------------------------- /test/timer_test.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RAttab/optics/HEAD/test/timer_test.c -------------------------------------------------------------------------------- /tools/make-release: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RAttab/optics/HEAD/tools/make-release -------------------------------------------------------------------------------- /tools/rest_filter.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RAttab/optics/HEAD/tools/rest_filter.sh --------------------------------------------------------------------------------