| 1 |
#pragma once |
| 2 |
|
| 3 |
#include "windows.h" |
| 4 |
#include "compat.h" |
| 5 |
#include "vmp_stack.h" |
| 6 |
#include <tlhelp32.h> |
| 7 |
|
| 8 |
int prepare_concurrent_bufs(void); |
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
int vmp_write_all(const char *buf, size_t bufsize); |
| 14 |
|
| 15 |
#ifdef RPYTHON_VMPROF |
| 16 |
typedef struct pypy_threadlocal_s PY_WIN_THREAD_STATE; |
| 17 |
#else |
| 18 |
typedef PyThreadState PY_WIN_THREAD_STATE; |
| 19 |
#endif |
| 20 |
|
| 21 |
|
| 22 |
int vmprof_register_virtual_function(char *code_name, intptr_t code_uid, |
| 23 |
int auto_retry); |
| 24 |
|
| 25 |
PY_WIN_THREAD_STATE * get_current_thread_state(void); |
| 26 |
int vmprof_enable(int memory, int native, int real_time); |
| 27 |
int vmprof_disable(void); |
| 28 |
void vmprof_ignore_signals(int ignored); |
| 29 |
int vmp_native_enable(void); |
| 30 |
void vmp_native_disable(void); |
| 31 |
int get_stack_trace(PY_WIN_THREAD_STATE * current, void** result, |
| 32 |
int max_depth, intptr_t pc); |