Eric Fiselier
12f4405870
add ability to use benchmark filters
2015-04-06 17:00:06 -04:00
Dominic Hamon
1e0ed3a21c
Rearrange the pieces
2015-04-03 13:33:54 -07:00
Geoff Romer
dcb1a3dad4
Drop down to CMake 2.8.11, and drop INTERFACE since that version doesn't
...
support it.
2015-04-03 13:30:59 -07:00
Geoff Romer
3078ce9bc5
Link pthread as an INTERFACE library.
2015-04-03 13:30:59 -07:00
Geoff Romer
89a1edae15
Require cmake 2.8.12 in order to support target_include_directories, and
...
simplify thread linking logic.
2015-04-03 13:30:59 -07:00
Geoff Romer
a6ad799a4d
Configure 'benchmark' cmake target so that when other targets depend on it,
...
they get the appropriate include directories and link libraries automatically.
2015-04-03 13:30:59 -07:00
Eric Fiselier
8fcfa81d51
Fix comment about linking threading
2015-04-01 11:40:22 -04:00
Eric Fiselier
8bb991d099
Remove BENCHMARK_ENABLE_SHARED and prefer BUILD_SHARED_LIBS
2015-04-01 11:34:38 -04:00
Dominic Hamon
9934396e1f
Add missing paranthesis and documentation
2015-04-01 10:51:37 -04:00
Matt Clarkson
d676c5b375
Libraries are treated as runtime objects on Windows
...
When the library is created as a *.dll on Windows it is treated like a
runtime object so we must proivde the destination for the runtime
objects in our install command
2015-04-01 10:57:08 +01:00
Dominic Hamon
25e46848f9
Clarify build type warning
2015-03-31 14:43:38 -04:00
Eric
006d23ccca
Merge pull request #108 from google/list-tests
...
Add --benchmark_list_tests option and change filter to match generated name.
2015-03-31 14:16:58 -04:00
Eric Fiselier
ba1becca1a
Add braces for one line conditionals and loops
2015-03-31 13:28:41 -04:00
Matt Clarkson
b2a43b491c
NT definition of MyCPUUsage and ChildrenCPUUsage
...
The children CPU usage doesn't seem to have a equivalent on NT systems
so it just returns zero.
2015-03-31 10:13:10 +01:00
Matt Clarkson
05eb1f2545
Use int64_t
rather than int64
...
For cross platform and cross compiler portability we use the
standard integer type for a 64-bit integer. MinGW on Windows doesn't
have the definition for `int64`.
2015-03-31 10:13:09 +01:00
Matt Clarkson
65a5ebd638
Use the WINAPI Sleep
function
2015-03-31 10:13:09 +01:00
Matt Clarkson
6bc54ba028
Use CMake to link Shlwapi on Windows
...
We use the SHGetValueA on Windows to retrieve the MHz of the processor
but this requires the shlwapi library. Previous to this patch the
library was linked with a MSVC specific pragma but there is no
guarantee that on Windows we will be using MSVC. Therefore, it is much
compile agnostic to use the standard CMAKE library linking mechanism
to provide the definition of SHGetValueA
2015-03-31 10:13:08 +01:00
Matt Clarkson
dd61391c5d
Only include the correct platform headers
2015-03-31 10:13:08 +01:00
Eric Fiselier
12f1c5f471
add list test internals
2015-03-30 23:32:37 -04:00
Dominic Hamon
2924aaa747
Deal with names with embedded quotes
2015-03-30 10:41:22 -07:00
Dominic Hamon
b6e4f67d75
Add csv to help output
2015-03-27 14:08:46 -07:00
Dominic Hamon
680a399a93
Add double-quotes where necessary
2015-03-27 14:07:23 -07:00
Dominic Hamon
71c41cde57
Introduce CSV reporter
2015-03-27 14:07:23 -07:00
Eric Fiselier
9ed1082c33
Merge branch 'master' into new-benchmark-interface
2015-03-27 16:36:40 -04:00
Eric Fiselier
e428b9eec3
Add 'benchmark::DoNotOptimize(...)' to help users prevent optimizations
2015-03-27 16:35:46 -04:00
Eric Fiselier
4f9ce87e8c
Merge branch 'master' into new-benchmark-interface
2015-03-27 16:26:36 -04:00
Eric Fiselier
c5f238b18c
Fix column width calculation and remove duplicate test
2015-03-27 12:28:22 -04:00
Eric Fiselier
cfa3e181ab
Make DateTimeString part of the internal implementation
2015-03-27 12:13:02 -04:00
Eric Fiselier
4bf6ceb50d
Change the available benchmark options
2015-03-26 23:37:26 -04:00
Eric Fiselier
b07fee6b64
address review comments
2015-03-26 18:32:31 -04:00
Eric Fiselier
1b9e55c281
Remove walltime implementation tests and expose less internals
2015-03-26 17:56:27 -04:00
Eric Fiselier
d3e0671a87
finish selection of clock with debug information
2015-03-26 17:52:28 -04:00
Eric Fiselier
48c4c9cf50
Revert "prevent unneeded calculation of Slow()"
...
The calculation was actually inside the loop for a reason.
This reverts commit 47442b9054
.
2015-03-26 16:22:29 -04:00
Eric Fiselier
47442b9054
prevent unneeded calculation of Slow()
2015-03-26 16:01:29 -04:00
Eric Fiselier
725f1f066d
add walltime benchmark and fix unused variable.
2015-03-26 14:56:52 -04:00
Eric Fiselier
d0df7ef2de
cleanup whitespace and includes
2015-03-26 14:30:16 -04:00
Eric Fiselier
a3308c6d86
Introduce use of std::chrono and remove Walltime printing
2015-03-26 14:26:07 -04:00
Eric Fiselier
92fc9b99b2
Add newline after every benchmark to improve readability of the json output.
2015-03-18 12:09:18 -04:00
Eric Fiselier
6429348e0d
address review comments and fix array type declaration
2015-03-18 00:23:43 -04:00
Eric Fiselier
ffb67dcabf
address review comments
2015-03-17 18:42:41 -04:00
Eric Fiselier
f65da9d581
add json reporter
2015-03-17 18:18:06 -04:00
Eric Fiselier
20f1c0e2a8
Apply reporter interface changes. Make report methods non-const and add a Finalize method.
2015-03-17 16:16:36 -04:00
Eric Fiselier
e45252e6f5
move ConsoleReporter out of internal namespace
2015-03-17 14:15:16 -04:00
Eric Fiselier
4242f2f1d7
move reporter internals in both headers and source
2015-03-17 13:46:16 -04:00
Eric Fiselier
7f2ef46255
merge master
2015-03-17 12:35:11 -04:00
Eric Fiselier
1924b30a6c
Merge null pointer warnings
2015-03-17 12:21:20 -04:00
Eric Fiselier
66bf7c8f71
add floating point comparison warnings
2015-03-12 20:27:29 -04:00
Eric Fiselier
180981716b
replace instances of NULL with nullptr
2015-03-12 19:32:50 -04:00
Eric Fiselier
64ba272911
Enable zero as NULL warnings and fix all occurences
2015-03-12 19:16:06 -04:00
Eric Fiselier
2b34b5d937
remove unneeded includes
2015-03-12 18:45:52 -04:00