diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2023-07-18 18:39:00 +0200 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2023-07-18 19:57:17 +0200 |
commit | 6a200443106bb83c6261c64c323ceb9f0563fdad (patch) | |
tree | 45d1f41f2da35631079bc4b559b1cb44b4c34e32 /Makefile | |
parent | net: don't copy data in struct buf (diff) | |
download | cimple-6a200443106bb83c6261c64c323ceb9f0563fdad.tar.gz cimple-6a200443106bb83c6261c64c323ceb9f0563fdad.zip |
implement flame graph generation
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -5,6 +5,7 @@ build_dir := $(src_dir)/build cmake_dir := $(build_dir)/cmake install_dir := $(build_dir)/install coverage_dir := $(build_dir)/coverage +flame_graphs_dir := $(build_dir)/flame_graphs COMPILER ?= clang CONFIGURATION ?= Debug @@ -41,6 +42,7 @@ build: -D 'DEFAULT_HOST=$(call escape,$(DEFAULT_HOST))' \ -D 'DEFAULT_PORT=$(call escape,$(DEFAULT_PORT))' \ -D 'COVERAGE=$(call escape,$(COVERAGE))' \ + -D 'FLAME_GRAPHS_DIR=$(call escape,$(flame_graphs_dir))' \ -S '$(call escape,$(src_dir))' \ -B '$(call escape,$(cmake_dir))' cmake --build '$(call escape,$(cmake_dir))' -- -j @@ -91,6 +93,14 @@ test/stress: ctest --test-dir '$(call escape,$(cmake_dir))' \ --verbose --tests-regex python_tests_stress +.PHONY: test/perf +test/perf: + @echo ----------------------------------------------------------------- + @echo Collecting profiling data + @echo ----------------------------------------------------------------- + ctest --test-dir '$(call escape,$(cmake_dir))' \ + --verbose --tests-regex python_tests_perf + .PHONY: test/docker test/docker: test/sanity |