InteractionStallDebugger.js 592 B

1234567891011121314151617181920212223
  1. /**
  2. * Copyright (c) Facebook, Inc. and its affiliates.
  3. *
  4. * This source code is licensed under the MIT license found in the
  5. * LICENSE file in the root directory of this source tree.
  6. *
  7. * @format
  8. * @flow strict-local
  9. */
  10. 'use strict';
  11. const BridgeSpyStallHandler = require('./BridgeSpyStallHandler');
  12. const JSEventLoopWatchdog = require('./JSEventLoopWatchdog');
  13. const InteractionStallDebugger = {
  14. install(options: {thresholdMS: number, ...}): void {
  15. JSEventLoopWatchdog.install(options);
  16. BridgeSpyStallHandler.register();
  17. },
  18. };
  19. module.exports = InteractionStallDebugger;