Remove quicklog

Reviewed By: AaaChiuuu

Differential Revision: D6172832

fbshipit-source-id: d239ce8bef0918d3e90662258b6eabe3502f4897
This commit is contained in:
Alexey Lang 2017-10-30 07:57:44 -07:00 committed by Facebook Github Bot
parent 3fa648204c
commit 9742bcb4ba
6 changed files with 0 additions and 222 deletions

View File

@ -1,12 +0,0 @@
include_defs("//ReactAndroid/DEFS")
android_library(
name = "quicklog",
srcs = glob(["*.java"]),
exported_deps = [
react_native_dep("java/com/facebook/quicklog/identifiers:identifiers"),
],
visibility = [
"PUBLIC",
],
)

View File

@ -1,105 +0,0 @@
/**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
package com.facebook.quicklog;
/**
* Stub implementation of QPL
*/
public class QuickPerformanceLogger {
public void markerStart(
int markerId) {
}
public void markerStart(
int markerId,
int instnaceKey) {
}
public void markerStart(
int markerId,
int instnaceKey,
long timestamp) {
}
public void markerEnd(
int markerId,
short actionId) {
}
public void markerEnd(
int markerId,
int instanceKey,
short actionId) {
}
public void markerEnd(
int markerId,
int instanceKey,
short actionId,
long timestamp) {
}
public void markerNote(
int markerId,
short actionId) {
}
public void markerNote(
int markerId,
int instanceKey,
short actionId) {
}
public void markerNote(
int markerId,
int instanceKey,
short actionId,
long timestamp) {
}
public void markerCancel(
int markerId) {
}
public void markerCancel(
int markerId,
int instanceKey) {
}
public void markerTag(
int markerId,
String tag) {
}
public void markerTag(
int markerId,
int instanceKey,
String tag) {
}
public void markerAnnotate(
int markerId,
String annotationKey,
String annotationValue) {
}
public void markerAnnotate(
int markerId,
int instanceKey,
String annotationKey,
String annotationValue) {
}
public long currentMonotonicTimestamp() {
return 0L;
}
}

View File

@ -1,24 +0,0 @@
/**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
package com.facebook.quicklog;
/**
* Provides stub implementation of QPL
*/
public class QuickPerformanceLoggerProvider {
private static final QuickPerformanceLogger sQuickPerformanceLogger =
new QuickPerformanceLogger();
public static QuickPerformanceLogger getQPLInstance() {
return sQuickPerformanceLogger;
}
}

View File

@ -1,51 +0,0 @@
/**
* Copyright (c) 2015-present; Facebook; Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
package com.facebook.quicklog.identifiers;
/**
* Stub implementation of Action Identifiers.
* Use your own implementation with you own implementation of QuickPerformanceLogger
*/
public class ActionId {
/** Don't use this action identifier */
public static short UNDEFINED = 0;
/** This starts all markers */
public static short START = 0;
/** Successful termination of the marker */
public static short SUCCESS = 0;
/** Termination of marker due to some failure */
public static short FAIL = 0;
/** Termination of marker due to a cancellation */
public static short CANCEL = 0;
/** Some (general) drawing action has completed */
public static short DRAW_COMPLETE = 0;
/** General pause poshort */
public static short PAUSE = 0;
/** General resume poshort */
public static short RESUME = 0;
/** Insertion into a queue */
public static short QUEUED = 0;
/** Some error occurred */
public static short ERROR = 0;
/** Denoting a finally situation */
public static short FINALLY = 0;
}

View File

@ -1,9 +0,0 @@
include_defs("//ReactAndroid/DEFS")
android_library(
name = "identifiers",
srcs = glob(["*.java"]),
visibility = [
"PUBLIC",
],
)

View File

@ -1,21 +0,0 @@
/**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
package com.facebook.quicklog.identifiers;
/**
* Stub definition of identifier needed in react native open source code.
* Use your own identifiers with your own QuickPerformanceLogger implementation
*/
public class ReactNativeBridge {
public static final int CALL_JAVA_MODULE_METHOD = 0;
}