(fiber)
| 7434 | }; |
| 7435 | |
| 7436 | var shouldIgnoreFiber = function (fiber) { |
| 7437 | // Host components should be skipped in the timeline. |
| 7438 | // We could check typeof fiber.type, but does this work with RN? |
| 7439 | switch (fiber.tag) { |
| 7440 | case HostRoot: |
| 7441 | case HostComponent: |
| 7442 | case HostText: |
| 7443 | case HostPortal: |
| 7444 | case CallComponent: |
| 7445 | case ReturnComponent: |
| 7446 | case Fragment: |
| 7447 | case ContextProvider: |
| 7448 | case ContextConsumer: |
| 7449 | return true; |
| 7450 | default: |
| 7451 | return false; |
| 7452 | } |
| 7453 | }; |
| 7454 | |
| 7455 | var clearPendingPhaseMeasurement = function () { |
| 7456 | if (currentPhase !== null && currentPhaseFiber !== null) { |
no outgoing calls
no test coverage detected