mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Add tracing section for event loop tick work for IntersectionObserver (#51744)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/51744 Changelog: [internal] TSIA Reviewed By: rshest Differential Revision: D75789346 fbshipit-source-id: fa32cd3e5d9809bcbad48f0a6f1706efcce34d7f
This commit is contained in:
committed by
Facebook GitHub Bot
parent
7979c7ce06
commit
8ac0ccbb91
+8
-1
@@ -243,6 +243,12 @@ void IntersectionObserverManager::updateIntersectionObservations(
|
||||
// In those cases it is ok to dispatch the notifications now, because the
|
||||
// current state is already accurate.
|
||||
|
||||
if (observersPendingInitialization_.empty()) {
|
||||
return;
|
||||
}
|
||||
|
||||
TraceSection s("IntersectionObserverManager::updateIntersectionObservations");
|
||||
|
||||
std::unordered_map<SurfaceId, RootShadowNode::Shared> rootShadowNodeCache;
|
||||
|
||||
for (auto observer : observersPendingInitialization_) {
|
||||
@@ -297,7 +303,8 @@ void IntersectionObserverManager::updateIntersectionObservations(
|
||||
SurfaceId surfaceId,
|
||||
const RootShadowNode* rootShadowNode,
|
||||
HighResTimeStamp time) {
|
||||
TraceSection s("IntersectionObserverManager::updateIntersectionObservations");
|
||||
TraceSection s(
|
||||
"IntersectionObserverManager::updateIntersectionObservations(mount)");
|
||||
|
||||
std::vector<IntersectionObserverEntry> entries;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user