George Wright 6b45335bf1 Create a DisplayList benchmarks dylib on iOS (flutter/engine#30833)
Create a DisplayList benchmarks dylib on iOS that can be linked to from a test app. To run the benchmarks,
call the exported entrypoint RunBenchmarks(argc, argv).
2022-01-13 14:32:54 -08:00

17 lines
403 B
C++

// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "third_party/benchmark/include/benchmark/benchmark.h"
#include "library.h"
extern "C" {
int RunBenchmarks(int argc, char** argv) {
benchmark::Initialize(&argc, argv);
::benchmark::RunSpecifiedBenchmarks();
return 0;
}
}