8
8
#include < jsi/jsi.h>
9
9
10
10
#include < react/core/LayoutContext.h>
11
- #include < react/debug/SystraceSection.h>
12
11
#include < react/uimanager/ComponentDescriptorRegistry.h>
13
12
#include < react/uimanager/UIManager.h>
14
13
#include < react/uimanager/UIManagerBinding.h>
@@ -69,8 +68,6 @@ void Scheduler::startSurface(
69
68
const folly::dynamic &initialProps,
70
69
const LayoutConstraints &layoutConstraints,
71
70
const LayoutContext &layoutContext) const {
72
- SystraceSection s (" Scheduler::startSurface" );
73
-
74
71
auto shadowTree =
75
72
std::make_unique<ShadowTree>(surfaceId, layoutConstraints, layoutContext);
76
73
shadowTree->setDelegate (this );
@@ -88,8 +85,6 @@ void Scheduler::startSurface(
88
85
void Scheduler::renderTemplateToSurface (
89
86
SurfaceId surfaceId,
90
87
const std::string &uiTemplate) {
91
- SystraceSection s (" Scheduler::renderTemplateToSurface" );
92
-
93
88
try {
94
89
if (uiTemplate.size () == 0 ) {
95
90
return ;
@@ -120,8 +115,6 @@ void Scheduler::renderTemplateToSurface(
120
115
}
121
116
122
117
void Scheduler::stopSurface (SurfaceId surfaceId) const {
123
- SystraceSection s (" Scheduler::stopSurface" );
124
-
125
118
shadowTreeRegistry_.visit (surfaceId, [](const ShadowTree &shadowTree) {
126
119
// As part of stopping the Surface, we have to commit an empty tree.
127
120
return shadowTree.tryCommit (
@@ -147,8 +140,6 @@ Size Scheduler::measureSurface(
147
140
SurfaceId surfaceId,
148
141
const LayoutConstraints &layoutConstraints,
149
142
const LayoutContext &layoutContext) const {
150
- SystraceSection s (" Scheduler::measureSurface" );
151
-
152
143
Size size;
153
144
shadowTreeRegistry_.visit (surfaceId, [&](const ShadowTree &shadowTree) {
154
145
shadowTree.tryCommit ([&](const SharedRootShadowNode &oldRootShadowNode) {
@@ -166,8 +157,6 @@ void Scheduler::constraintSurfaceLayout(
166
157
SurfaceId surfaceId,
167
158
const LayoutConstraints &layoutConstraints,
168
159
const LayoutContext &layoutContext) const {
169
- SystraceSection s (" Scheduler::constraintSurfaceLayout" );
170
-
171
160
shadowTreeRegistry_.visit (surfaceId, [&](const ShadowTree &shadowTree) {
172
161
shadowTree.commit ([&](const SharedRootShadowNode &oldRootShadowNode) {
173
162
return oldRootShadowNode->clone (layoutConstraints, layoutContext);
@@ -190,8 +179,6 @@ SchedulerDelegate *Scheduler::getDelegate() const {
190
179
void Scheduler::shadowTreeDidCommit (
191
180
const ShadowTree &shadowTree,
192
181
const ShadowViewMutationList &mutations) const {
193
- SystraceSection s (" Scheduler::shadowTreeDidCommit" );
194
-
195
182
if (delegate_) {
196
183
delegate_->schedulerDidFinishTransaction (
197
184
shadowTree.getSurfaceId (), mutations);
@@ -203,8 +190,6 @@ void Scheduler::shadowTreeDidCommit(
203
190
void Scheduler::uiManagerDidFinishTransaction (
204
191
SurfaceId surfaceId,
205
192
const SharedShadowNodeUnsharedList &rootChildNodes) {
206
- SystraceSection s (" Scheduler::uiManagerDidFinishTransaction" );
207
-
208
193
shadowTreeRegistry_.visit (surfaceId, [&](const ShadowTree &shadowTree) {
209
194
shadowTree.commit ([&](const SharedRootShadowNode &oldRootShadowNode) {
210
195
return std::make_shared<RootShadowNode>(
@@ -215,8 +200,6 @@ void Scheduler::uiManagerDidFinishTransaction(
215
200
216
201
void Scheduler::uiManagerDidCreateShadowNode (
217
202
const SharedShadowNode &shadowNode) {
218
- SystraceSection s (" Scheduler::uiManagerDidCreateShadowNode" );
219
-
220
203
if (delegate_) {
221
204
auto layoutableShadowNode =
222
205
dynamic_cast <const LayoutableShadowNode *>(shadowNode.get ());
0 commit comments