Skip to content

Commit

Permalink
Google Benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
dahlstrom-g committed May 9, 2024
1 parent 2df15ff commit 34bbae9
Show file tree
Hide file tree
Showing 140 changed files with 435 additions and 390 deletions.
2 changes: 1 addition & 1 deletion starboard/benchmark/memory_benchmark.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

#include "starboard/memory.h"

#include "third_party/google_benchmark/include/benchmark/benchmark.h"
#include "third_party/google_benchmark/src/include/benchmark/benchmark.h"

namespace starboard {
namespace benchmark {
Expand Down
2 changes: 1 addition & 1 deletion starboard/benchmark/thread_benchmark.cc
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#include "third_party/google_benchmark/include/benchmark/benchmark.h"
#include "third_party/google_benchmark/src/include/benchmark/benchmark.h"

namespace starboard {
namespace benchmark {
Expand Down
2 changes: 1 addition & 1 deletion starboard/common/benchmark_main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#include "starboard/client_porting/wrap_main/wrap_main.h"
#include "starboard/event.h"
#include "starboard/system.h"
#include "third_party/google_benchmark/include/benchmark/benchmark.h"
#include "third_party/google_benchmark/src/include/benchmark/benchmark.h"

namespace {
int RunAllBenchmarks(int argc, char** argv) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include "starboard/shared/starboard/player/input_buffer_internal.h"
#include "starboard/shared/starboard/player/job_queue.h"
#include "starboard/shared/starboard/player/video_dmp_reader.h"
#include "third_party/google_benchmark/include/benchmark/benchmark.h"
#include "third_party/google_benchmark/src/include/benchmark/benchmark.h"

namespace starboard {
namespace shared {
Expand Down
38 changes: 19 additions & 19 deletions third_party/google_benchmark/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -16,27 +16,27 @@ static_library("google_benchmark") {
testonly = true

sources = [
"src/benchmark.cc",
"src/benchmark_api_internal.cc",
"src/benchmark_name.cc",
"src/benchmark_register.cc",
"src/benchmark_runner.cc",
"src/colorprint_starboard.cc",
"src/commandlineflags.cc",
"src/complexity.cc",
"src/console_reporter.cc",
"src/counter.cc",
"src/csv_reporter.cc",
"src/json_reporter.cc",
"src/reporter.cc",
"src/sleep.cc",
"src/statistics.cc",
"src/string_util.cc",
"src/sysinfo.cc",
"src/timers.cc",
"src/src/benchmark.cc",
"src/src/benchmark_api_internal.cc",
"src/src/benchmark_name.cc",
"src/src/benchmark_register.cc",
"src/src/benchmark_runner.cc",
"src/src/colorprint_starboard.cc",
"src/src/commandlineflags.cc",
"src/src/complexity.cc",
"src/src/console_reporter.cc",
"src/src/counter.cc",
"src/src/csv_reporter.cc",
"src/src/json_reporter.cc",
"src/src/reporter.cc",
"src/src/sleep.cc",
"src/src/statistics.cc",
"src/src/string_util.cc",
"src/src/sysinfo.cc",
"src/src/timers.cc",
]

include_dirs = [ "include" ]
include_dirs = [ "src/include" ]

public_deps = [ "//starboard/common" ]
}
277 changes: 0 additions & 277 deletions third_party/google_benchmark/CMakeLists.txt

This file was deleted.

8 changes: 8 additions & 0 deletions third_party/google_benchmark/OWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Primary for bugs, reviews:
[email protected]

# Secondary:
[email protected]

# TEAM: [email protected]
# COMPONENT: Internals>Storage
25 changes: 25 additions & 0 deletions third_party/google_benchmark/README.chromium
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
Name: Google Benchmark
Short Name: benchmark
URL: https://github.com/google/benchmark
Version: unknown
License: Apache 2.0
License File: NOT_SHIPPED
Security Critical: no

Description:
A microbenchmark support library.

Google Benchmark is NOT supported for writing benchmarks in Chromium. It is
included to run benchmarks in third-party code that have already been written
against Google Benchmarks.

To include this library in the Chromium checkout, add the following clause to
your .gclient configuration.

"custom_vars": {
"checkout_google_benchmark": True,
}


Local Additions:
* gn file for building in chromium
Loading

0 comments on commit 34bbae9

Please sign in to comment.