|
FEAT 3
Finite Element Analysis Toolbox
|
Windows OS utility namespace. More...
Functions | |
| void | disable_error_prompts () |
| Disables Windows error dialog boxes. More... | |
| void | dump_call_stack (CONTEXT &ctx, FILE *stream) |
| void | dump_call_stack_to_stderr () |
| Dumps the call-stack to stderr. More... | |
| LONG WINAPI | FeatWinExceptionFilter (LPEXCEPTION_POINTERS p) |
| unsigned long | get_current_process_id () |
| Returns the Windows process ID for the current process. More... | |
| void | install_seh_filter () |
| Installs custom Windows Structured-Exception-Handler filter. More... | |
| void | query_memory_usage (unsigned long long &work_set_size, unsigned long long &work_set_size_peak, unsigned long long &page_file_usage, unsigned long long &page_file_usage_peak) |
| Queries memory usage information. More... | |
| long long | query_performance_counter () |
| Wraps around the QueryPerformanceCounter function. More... | |
| long long | query_performance_frequency () |
| Wraps around the QueryPerformanceCounter function. More... | |
Windows OS utility namespace.
This namespace encapsulates a set of functions which are wrapped from the Win32 API, and provides some additional functions for debugging and profiling.
| void FEAT::Windows::disable_error_prompts | ( | ) |
Disables Windows error dialog boxes.
This functions disables the Popup-Dialog-Boxes when an application crashes.
Definition at line 214 of file os_windows.cpp.
Referenced by FEAT::Runtime::initialize().
| void FEAT::Windows::dump_call_stack | ( | CONTEXT & | ctx, |
| FILE * | stream | ||
| ) |
Definition at line 63 of file os_windows.cpp.
| void FEAT::Windows::dump_call_stack_to_stderr | ( | ) |
Dumps the call-stack to stderr.
Definition at line 152 of file os_windows.cpp.
Referenced by FEAT::Runtime::abort().
| LONG WINAPI FEAT::Windows::FeatWinExceptionFilter | ( | LPEXCEPTION_POINTERS | p | ) |
Definition at line 162 of file os_windows.cpp.
| unsigned long FEAT::Windows::get_current_process_id | ( | ) |
Returns the Windows process ID for the current process.
Definition at line 222 of file os_windows.cpp.
Referenced by FEAT::Runtime::initialize().
| void FEAT::Windows::install_seh_filter | ( | ) |
Installs custom Windows Structured-Exception-Handler filter.
This function installs a handler for the Windows SEH system, which prints an error message and a call-stack dump to stderr.
Definition at line 208 of file os_windows.cpp.
Referenced by FEAT::Runtime::initialize().
| void FEAT::Windows::query_memory_usage | ( | unsigned long long & | work_set_size, |
| unsigned long long & | work_set_size_peak, | ||
| unsigned long long & | page_file_usage, | ||
| unsigned long long & | page_file_usage_peak | ||
| ) |
Queries memory usage information.
Definition at line 41 of file os_windows.cpp.
Referenced by FEAT::MemoryUsage::stamp().
| long long FEAT::Windows::query_performance_counter | ( | ) |
Wraps around the QueryPerformanceCounter function.
Definition at line 25 of file os_windows.cpp.
Referenced by FEAT::TimeStamp::stamp().
| long long FEAT::Windows::query_performance_frequency | ( | ) |
Wraps around the QueryPerformanceCounter function.
Definition at line 33 of file os_windows.cpp.
Referenced by FEAT::TimeStamp::elapsed(), and FEAT::TimeStamp::elapsed_micros().