hermes_tracing.h 774 B

12345678910111213141516171819202122232425262728
  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. #ifndef HERMES_HERMES_TRACING_H
  8. #define HERMES_HERMES_TRACING_H
  9. #include <hermes/hermes.h>
  10. namespace facebook {
  11. namespace hermes {
  12. /// Like the method above, except takes a file descriptor instead of
  13. /// a stream. If the \p traceFileDescriptor argument is -1, do not write
  14. /// the trace to a file.
  15. std::unique_ptr<jsi::Runtime> makeTracingHermesRuntime(
  16. std::unique_ptr<HermesRuntime> hermesRuntime,
  17. const ::hermes::vm::RuntimeConfig &runtimeConfig,
  18. int traceFileDescriptor,
  19. const std::string &traceFilename);
  20. } // namespace hermes
  21. } // namespace facebook
  22. #endif