Rename BridgeProfiling to Systrace for consistency

Summary:
public

Rename the `BridgeProfiling` JS module to `Systrace`, since it's actually just
an API to Systrace markers.

This should make it clearer as we add more perf tooling.

Reviewed By: jspahrsummers

Differential Revision: D2734001

fb-gh-sync-id: 642848fa7340c545067f2a7cf5cef8af1c8a69a2
This commit is contained in:
Tadeu Zagallo
2015-12-11 03:49:15 -08:00
committed by facebook-github-bot-7
parent 44cbec28bd
commit 3549ff049c
10 changed files with 53 additions and 54 deletions

View File

@@ -13,7 +13,6 @@ import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import com.facebook.react.bridge.BridgeProfiling;
import com.facebook.react.bridge.JavaScriptModule;
import com.facebook.react.bridge.NativeModule;
import com.facebook.react.bridge.ReactApplicationContext;
@@ -95,7 +94,7 @@ import com.facebook.systrace.Systrace;
RCTEventEmitter.class,
RCTNativeAppEventEmitter.class,
AppRegistry.class,
BridgeProfiling.class,
com.facebook.react.bridge.Systrace.class,
DebugComponentOwnershipModule.RCTDebugComponentOwnership.class);
}

View File

@@ -469,12 +469,12 @@ public class CatalystInstanceImpl implements CatalystInstance {
private class JSProfilerTraceListener implements TraceListener {
@Override
public void onTraceStarted() {
getJSModule(BridgeProfiling.class).setEnabled(true);
getJSModule(com.facebook.react.bridge.Systrace.class).setEnabled(true);
}
@Override
public void onTraceStopped() {
getJSModule(BridgeProfiling.class).setEnabled(false);
getJSModule(com.facebook.react.bridge.Systrace.class).setEnabled(false);
}
}

View File

@@ -5,10 +5,10 @@ package com.facebook.react.bridge;
import com.facebook.proguard.annotations.DoNotStrip;
/**
* Interface to the JavaScript BridgeProfiling Module
* Interface to the JavaScript Systrace Module
*/
@DoNotStrip
public interface BridgeProfiling extends JavaScriptModule{
public interface Systrace extends JavaScriptModule{
@DoNotStrip
void setEnabled(boolean enabled);
}