Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
fmt
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
fmt
Commits
bab5e988
Commit
bab5e988
authored
Dec 21, 2013
by
Victor Zverovich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add profiling support.
parent
fbed12ac
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
CMakeLists.txt
CMakeLists.txt
+7
-1
format-benchmark
format-benchmark
+1
-1
No files found.
CMakeLists.txt
View file @
bab5e988
...
@@ -10,6 +10,8 @@ endif ()
...
@@ -10,6 +10,8 @@ endif ()
project
(
FORMAT
)
project
(
FORMAT
)
set
(
PROFILE FALSE CACHE BOOL
"Enable profiling using gperftools."
)
include
(
CheckCXXCompilerFlag
)
include
(
CheckCXXCompilerFlag
)
check_cxx_compiler_flag
(
-std=c++11 HAVE_STD_CPP11_FLAG
)
check_cxx_compiler_flag
(
-std=c++11 HAVE_STD_CPP11_FLAG
)
...
@@ -64,8 +66,12 @@ if (EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/format-benchmark/tinyformat_test.cpp)
...
@@ -64,8 +66,12 @@ if (EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/format-benchmark/tinyformat_test.cpp)
add_executable
(
tinyformat_speed_test format-benchmark/tinyformat_test.cpp
)
add_executable
(
tinyformat_speed_test format-benchmark/tinyformat_test.cpp
)
target_link_libraries
(
tinyformat_speed_test format
)
target_link_libraries
(
tinyformat_speed_test format
)
if
(
PROFILE
)
target_link_libraries
(
tinyformat_speed_test profiler
)
set
(
PROFILE_DEFS
";FMT_PROFILE"
)
endif
()
set_target_properties
(
tinyformat_speed_test PROPERTIES COMPILE_DEFINITIONS
set_target_properties
(
tinyformat_speed_test PROPERTIES COMPILE_DEFINITIONS
"SPEED_TEST;HAVE_FORMAT;_SCL_SECURE_NO_WARNINGS"
)
"SPEED_TEST;HAVE_FORMAT;_SCL_SECURE_NO_WARNINGS
;
${
PROFILE_DEFS
}
"
)
if
(
HAVE_STD_CPP11_FLAG
)
if
(
HAVE_STD_CPP11_FLAG
)
set_target_properties
(
tinyformat_speed_test PROPERTIES COMPILE_FLAGS
"-std=c++11"
)
set_target_properties
(
tinyformat_speed_test PROPERTIES COMPILE_FLAGS
"-std=c++11"
)
endif
()
endif
()
...
...
format-benchmark
@
1dcd0950
Subproject commit
bb634893e8b868d4113eeef9b5483e1ad13e1033
Subproject commit
1dcd095094a47b51845c2c435ae80b4df87f7896
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment