diff --git a/docs/next/systrace.html b/docs/next/systrace.html index 8f5385a5368..ea438e24ddb 100644 --- a/docs/next/systrace.html +++ b/docs/next/systrace.html @@ -68,10 +68,6 @@
  • beginAsyncEvent
  • endAsyncEvent
  • counterEvent
  • -
  • attachToRelayProfiler
  • -
  • swizzleJSON
  • -
  • measureMethods
  • -
  • measure

  • Reference

    @@ -110,28 +106,6 @@
    static counterEvent(profileName?, value?)
     

    Register the value to the profileName on the systrace timeline.

    -
    -

    attachToRelayProfiler()

    -
    static attachToRelayProfiler(relayProfiler)
    -
    -

    Relay profiles use await calls, so likely occur out of current stack frame therefore async variant of profiling is used.

    -
    -

    swizzleJSON()

    -
    static swizzleJSON()
    -
    -

    This is not called by default due to performance overhead, but it's useful for finding traces which spend too much time in JSON.

    -
    -

    measureMethods()

    -
    static measureMethods(object, objectName, methodNames)
    -
    -

    Measures multiple methods of a class. For example, the following will return the parse and stringify methods of the JSON class: Systrace.measureMethods(JSON, 'JSON', ['parse', 'stringify']);

    -

    @param object @param objectName @param methodNames Map from method names to method display names.

    -
    -

    measure()

    -
    static measure(objName, fnName, func)
    -
    -

    Returns a profiled version of the input function. For example, you can: JSON.parse = Systrace.measure('JSON', 'parse', JSON.parse);

    -

    @param objName @param fnName @param {function} func @return {function} replacement function

    StyleSheetText Style Props