Skip to content

Commit 97ad18a

Browse files
hoxyqmeta-codesync[bot]
authored andcommitted
Backout "[rn] Expose frame events on PerformanceTracer" (#54680)
Summary: Pull Request resolved: #54680 # Changelog: [Internal] Reviewed By: sbuggay Differential Revision: D87549337 fbshipit-source-id: de885f1c74b1bd1e9acd4248618c4e081813f3dc
1 parent 9ba4ce6 commit 97ad18a

File tree

2 files changed

+0
-57
lines changed

2 files changed

+0
-57
lines changed

packages/react-native/ReactCommon/jsinspector-modern/tracing/PerformanceTracer.cpp

Lines changed: 0 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -366,50 +366,6 @@ void PerformanceTracer::reportResourceFinish(
366366
});
367367
}
368368

369-
void PerformanceTracer::setLayerTreeId(std::string frame, int layerTreeId) {
370-
enqueueEvent(
371-
PerformanceTracerSetLayerTreeIdEvent{
372-
.frame = std::move(frame),
373-
.layerTreeId = layerTreeId,
374-
.start = HighResTimeStamp::now(),
375-
.threadId = getCurrentThreadId(),
376-
});
377-
}
378-
379-
void PerformanceTracer::reportFrameTiming(
380-
int frameSeqId,
381-
HighResTimeStamp start,
382-
HighResTimeStamp end) {
383-
if (!tracingAtomic_) {
384-
return;
385-
}
386-
387-
std::lock_guard<std::mutex> lock(mutex_);
388-
if (!tracingAtomic_) {
389-
return;
390-
}
391-
392-
ThreadId threadId = getCurrentThreadId();
393-
enqueueEvent(
394-
PerformanceTracerFrameBeginDrawEvent{
395-
.frameSeqId = frameSeqId,
396-
.start = start,
397-
.threadId = threadId,
398-
});
399-
enqueueEvent(
400-
PerformanceTracerFrameCommitEvent{
401-
.frameSeqId = frameSeqId,
402-
.start = start,
403-
.threadId = threadId,
404-
});
405-
enqueueEvent(
406-
PerformanceTracerFrameDrawEvent{
407-
.frameSeqId = frameSeqId,
408-
.start = end,
409-
.threadId = threadId,
410-
});
411-
}
412-
413369
/* static */ TraceEvent PerformanceTracer::constructRuntimeProfileTraceEvent(
414370
RuntimeProfileId profileId,
415371
ProcessId processId,

packages/react-native/ReactCommon/jsinspector-modern/tracing/PerformanceTracer.h

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -163,19 +163,6 @@ class PerformanceTracer {
163163
int encodedDataLength,
164164
int decodedBodyLength);
165165

166-
/**
167-
* Sets the active layer tree ID in Chrome DevTools. This is needed in
168-
* order for frames to be parsed.
169-
*
170-
* https://chromedevtools.github.io/devtools-protocol/tot/LayerTree/
171-
*/
172-
void setLayerTreeId(std::string frame, int layerTreeId);
173-
174-
/**
175-
* Reports the required frame CDP events for a given native frame.
176-
*/
177-
void reportFrameTiming(int frameSeqId, HighResTimeStamp start, HighResTimeStamp end);
178-
179166
/**
180167
* Creates "Profile" Trace Event.
181168
*

0 commit comments

Comments
 (0)