Skip to content

Commit c753402

Browse files
oshaduraHLilit
authored andcommitted
Add FlameGraph sources in rootbench project
1 parent a9f10f2 commit c753402

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
5353
endif()
5454

5555
include(GoogleBenchmark)
56+
if(flamegraph)
57+
include(FlameGraph)
58+
add_custom_target(flamegraph-download DEPENDS FlameGraph)
59+
endif()
5660

5761
#---Add ROOT include direcories and used compilation flags
5862
include_directories(${ROOT_INCLUDE_DIRS})

cmake/modules/FlameGraph.cmake

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
include(ExternalProject)
2+
3+
ExternalProject_Add(FlameGraph
4+
GIT_REPOSITORY "https://github.com/brendangregg/FlameGraph.git"
5+
UPDATE_COMMAND ""
6+
PATCH_COMMAND ""
7+
CONFIGURE_COMMAND ""
8+
BUILD_COMMAND ""
9+
INSTALL_COMMAND ""
10+
EXCLUDE_FROM_ALL 1
11+
)

0 commit comments

Comments
 (0)