mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
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).
17 lines
403 B
C++
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;
|
|
}
|
|
}
|