runtime_lib.h 475 B

12345678910111213141516171819202122
  1. /*
  2. * Copyright (C) 2019 Intel Corporation. All rights reserved.
  3. * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  4. */
  5. #ifndef LIB_BASE_RUNTIME_LIB_H_
  6. #define LIB_BASE_RUNTIME_LIB_H_
  7. #include "runtime_timer.h"
  8. bool
  9. init_wasm_timer();
  10. void
  11. exit_wasm_timer();
  12. timer_ctx_t
  13. get_wasm_timer_ctx();
  14. timer_ctx_t
  15. create_wasm_timer_ctx(unsigned int module_id, int prealloc_num);
  16. void
  17. destroy_module_timer_ctx(unsigned int module_id);
  18. #endif /* LIB_BASE_RUNTIME_LIB_H_ */