#pragma once #include "vm.hpp" #include #include namespace sliger::rpc::vm_provider { class VmProvider { public: VmProvider() { } auto load_and_run(std::vector instructions) -> void; auto flame_graph_json() -> std::optional; auto code_coverage_json() -> std::optional; auto done() -> bool; private: void run_timeslot(); std::mutex mutex; std::optional vm; std::optional running_thread; }; }