aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Makefile
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-07-18 18:39:00 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2023-07-18 19:57:17 +0200
commit6a200443106bb83c6261c64c323ceb9f0563fdad (patch)
tree45d1f41f2da35631079bc4b559b1cb44b4c34e32 /Makefile
parentnet: don't copy data in struct buf (diff)
downloadcimple-6a200443106bb83c6261c64c323ceb9f0563fdad.tar.gz
cimple-6a200443106bb83c6261c64c323ceb9f0563fdad.zip
implement flame graph generation
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 7b5a8b9..79221d6 100644
--- a/Makefile
+++ b/Makefile
@@ -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