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 /test/CMakeLists.txt | |
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 '')
-rw-r--r-- | test/CMakeLists.txt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 7f4ff11..d370c53 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -29,3 +29,12 @@ add_python_tests(python_tests_stress add_python_tests(python_tests_valgrind Python3::Interpreter -m pytest ${python_test_args} -m "not stress" --valgrind-binary "${CMAKE_CURRENT_SOURCE_DIR}/../src/valgrind.sh") + +if(NOT DEFINED FLAME_GRAPHS_DIR) + set(FLAME_GRAPHS_DIR "${CMAKE_CURRENT_SOURCE_DIR}") +endif() + +add_python_tests(python_tests_perf + Python3::Interpreter -m pytest ${python_test_args} -m "flame_graph" + --flame-graph-binary "${CMAKE_CURRENT_SOURCE_DIR}/../scripts/flame_graph.sh" + --flame-graphs-dir "${FLAME_GRAPHS_DIR}") |