Support for (de)serializing config values (#1571)
Summary: Pull Request resolved: https://github.com/facebook/yoga/pull/1571 X-link: https://github.com/facebook/react-native/pull/42750 tsia. This is state we need to capture as it can drastically affect the benchmark times Reviewed By: NickGerleman Differential Revision: D53203385 fbshipit-source-id: 47178458d039df90fb15d8a420f9e0f17e4fe6ca
This commit is contained in:
committed by
Facebook GitHub Bot
parent
a37565f70d
commit
f90ad378ff
@@ -14,7 +14,10 @@ namespace facebook::yoga {
|
||||
|
||||
void captureTree(YGNodeRef node, const std::filesystem::path& path) {
|
||||
std::string str;
|
||||
nodeToString(str, node, YGPrintOptionsStyle | YGPrintOptionsChildren);
|
||||
nodeToString(
|
||||
str,
|
||||
node,
|
||||
PrintOptions::Style | PrintOptions::Children | PrintOptions::Config);
|
||||
std::ofstream file(path);
|
||||
file << str;
|
||||
}
|
||||
|
Reference in New Issue
Block a user