From 125c46c10f849345f7d7c784ed991ed7dc3206ae Mon Sep 17 00:00:00 2001 From: Joe Groff Date: Mon, 31 Oct 2011 00:11:59 -0700 Subject: [PATCH] vm: stub out windows sampling timer implementation AFAIK Windows has no equivalent to setitimer. We'll probably need to use a thread that periodically pauses and samples the main VM thread. --- vm/os-windows.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/vm/os-windows.cpp b/vm/os-windows.cpp index 3cbfc7e85c..e220e11031 100755 --- a/vm/os-windows.cpp +++ b/vm/os-windows.cpp @@ -301,4 +301,14 @@ void factor_vm::open_console() SetConsoleCtrlHandler(factor::ctrl_handler, TRUE); } +void factor_vm::start_sampling_profiler_timer() +{ + general_error(ERROR_NOT_IMPLEMENTED, false_object, false_object); +} + +void factor_vm::end_sampling_profiler_timer() +{ + general_error(ERROR_NOT_IMPLEMENTED, false_object, false_object); +} + }