/
githubmirror
/
node
Обзор
Документация
Войти
/
githubmirror
/
node
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
deps/v8/test/benchmarks/cpp/cppgc/benchmark_utils.cc
31 строка
806 B
Michaël Zasso
deps: update V8 to 9.8.177.9
02 фев 2022, 19:23
Не верифицирован
02 фев 2022, 19:23
974ab40
Код
Авторство
О чём код?
// Copyright 2021 the V8 project 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 "test/benchmarks/cpp/cppgc/benchmark_utils.h" #include "include/cppgc/platform.h" #include "test/unittests/heap/cppgc/test-platform.h" namespace cppgc { namespace internal { namespace testing { // static std::shared_ptr<testing::TestPlatform> BenchmarkWithHeap::platform_; // static void BenchmarkWithHeap::InitializeProcess() { platform_ = std::make_shared<testing::TestPlatform>(); cppgc::InitializeProcess(platform_->GetPageAllocator()); } // static void BenchmarkWithHeap::ShutdownProcess() { cppgc::ShutdownProcess(); platform_.reset(); } } // namespace testing } // namespace internal } // namespace cppgc