slot 0.0.1
A real time UI render framework
载入中...
搜索中...
未找到
Benchmark.h
浏览该文件的文档.
1/*
2 * Copyright (c) Meta Platforms, Inc. and affiliates.
3 *
4 * This source code is licensed under the MIT license found in the
5 * LICENSE file in the root directory of this source tree.
6 */
7
8#pragma once
9
10#include <chrono>
11#include <memory>
12#include <string>
13#include <utility>
14#include <vector>
15
16#include <yoga/Yoga.h>
17
18namespace facebook::yoga {
19
22 std::shared_ptr<YGNode> node,
23 std::shared_ptr<const YGConfig> config,
24 std::vector<std::shared_ptr<YogaNodeAndConfig>> children)
25 : node_(std::move(node)),
26 config_(std::move(config)),
27 children_(std::move(children)) {}
28
29 std::shared_ptr<YGNode> node_;
30 std::shared_ptr<const YGConfig> config_;
31 std::vector<std::shared_ptr<YogaNodeAndConfig>> children_;
32};
33
35 std::chrono::steady_clock::duration treeCreationDuration;
36 std::chrono::steady_clock::duration layoutDuration;
37};
38
39} // namespace facebook::yoga
float YGMeasureMode float YGMeasureMode float YGMeasureMode float float float float float YGConfigRef config
Definition YGNode.h:302
Definition Benchmark.cpp:19
Definition json.hpp:5363
Definition Benchmark.h:34
std::chrono::steady_clock::duration treeCreationDuration
Definition Benchmark.h:35
std::chrono::steady_clock::duration layoutDuration
Definition Benchmark.h:36
Definition Benchmark.h:20
std::shared_ptr< const YGConfig > config_
Definition Benchmark.h:30
std::vector< std::shared_ptr< YogaNodeAndConfig > > children_
Definition Benchmark.h:31
YogaNodeAndConfig(std::shared_ptr< YGNode > node, std::shared_ptr< const YGConfig > config, std::vector< std::shared_ptr< YogaNodeAndConfig > > children)
Definition Benchmark.h:21
std::shared_ptr< YGNode > node_
Definition Benchmark.h:29