Skip to content

Commit

Permalink
Reduce public API for DevToolsReactPerfLogger (facebook#47275)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: facebook#47275

Changelog: [Android][Removed] DevToolsReactPerfLogger stats gathering now uses an internal API

Reviewed By: cortinico, fabriziocucci

Differential Revision: D65133420

fbshipit-source-id: 360e86b69b1e4ba757090ae3fb87fc82d49163e7
  • Loading branch information
javache authored and facebook-github-bot committed Oct 29, 2024
1 parent c1e964a commit f503fe3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 18 deletions.
11 changes: 0 additions & 11 deletions packages/react-native/ReactAndroid/api/ReactAndroid.api
Original file line number Diff line number Diff line change
Expand Up @@ -2573,11 +2573,6 @@ public final class com/facebook/react/fabric/ComponentFactory {
}

public class com/facebook/react/fabric/DevToolsReactPerfLogger : com/facebook/react/bridge/ReactMarker$FabricMarkerListener {
public static final field mStreamingBatchExecutionStats Lcom/facebook/react/fabric/LongStreamingStats;
public static final field mStreamingCommitStats Lcom/facebook/react/fabric/LongStreamingStats;
public static final field mStreamingDiffStats Lcom/facebook/react/fabric/LongStreamingStats;
public static final field mStreamingLayoutStats Lcom/facebook/react/fabric/LongStreamingStats;
public static final field mStreamingTransactionEndStats Lcom/facebook/react/fabric/LongStreamingStats;
public fun <init> ()V
public fun addDevToolsReactPerfLoggerListener (Lcom/facebook/react/fabric/DevToolsReactPerfLogger$DevToolsReactPerfLoggerListener;)V
public fun logFabricMarker (Lcom/facebook/react/bridge/ReactMarkerConstants;Ljava/lang/String;IJ)V
Expand Down Expand Up @@ -2613,12 +2608,6 @@ public class com/facebook/react/fabric/DevToolsReactPerfLogger$FabricCommitPoint
public fun toString ()Ljava/lang/String;
}

public class com/facebook/react/fabric/DevToolsReactPerfLogger$FabricCommitPointData {
public fun <init> (JI)V
public fun getCounter ()I
public fun getTimeStamp ()J
}

public final class com/facebook/react/fabric/EmptyReactNativeConfig : com/facebook/react/fabric/ReactNativeConfig {
public fun <init> ()V
public fun getBool (Ljava/lang/String;)Z
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,18 +37,17 @@ public class DevToolsReactPerfLogger implements ReactMarker.FabricMarkerListener
private final List<DevToolsReactPerfLoggerListener> mDevToolsReactPerfLoggerListeners =
new ArrayList<>();

public static final LongStreamingStats mStreamingCommitStats = new LongStreamingStats();
public static final LongStreamingStats mStreamingLayoutStats = new LongStreamingStats();
public static final LongStreamingStats mStreamingDiffStats = new LongStreamingStats();
public static final LongStreamingStats mStreamingTransactionEndStats = new LongStreamingStats();
public static final LongStreamingStats mStreamingBatchExecutionStats = new LongStreamingStats();
static final LongStreamingStats mStreamingCommitStats = new LongStreamingStats();
static final LongStreamingStats mStreamingLayoutStats = new LongStreamingStats();
static final LongStreamingStats mStreamingDiffStats = new LongStreamingStats();
static final LongStreamingStats mStreamingTransactionEndStats = new LongStreamingStats();
static final LongStreamingStats mStreamingBatchExecutionStats = new LongStreamingStats();

public interface DevToolsReactPerfLoggerListener {

void onFabricCommitEnd(FabricCommitPoint commitPoint);
}

public static class FabricCommitPointData {
private static class FabricCommitPointData {
private final long mTimeStamp;
private final int mCounter;

Expand Down

0 comments on commit f503fe3

Please sign in to comment.