Add systrace to calculation of Yoga layout() in Fabric

Summary: Simple diff that adds a systrace to start measuring the calculation of Yoga layout() in Fabric

Reviewed By: shergin

Differential Revision: D13124641

fbshipit-source-id: 6bd03e9f56524221f5d91606ffde50253673c1bb
This commit is contained in:
David Vacca 2018-11-25 17:18:12 -08:00 committed by Facebook Github Bot
parent 10ce6c3e11
commit 3b4d6d5ef5
1 changed files with 2 additions and 0 deletions

View File

@ -8,6 +8,7 @@
#include "RootShadowNode.h"
#include <react/components/view/conversions.h>
#include <react/debug/SystraceSection.h>
namespace facebook {
namespace react {
@ -15,6 +16,7 @@ namespace react {
const char RootComponentName[] = "RootView";
void RootShadowNode::layout() {
SystraceSection s("RootShadowNode::layout");
ensureUnsealed();
layout(getProps()->layoutContext);