File tree Expand file tree Collapse file tree 2 files changed +0
-57
lines changed
packages/react-native/ReactCommon/jsinspector-modern/tracing Expand file tree Collapse file tree 2 files changed +0
-57
lines changed Original file line number Diff line number Diff 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,
Original file line number Diff line number Diff 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 *
You can’t perform that action at this time.
0 commit comments