forked from ethanchewy/PythonBuddy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvmprof_stack.h
More file actions
29 lines (24 loc) · 767 Bytes
/
vmprof_stack.h
File metadata and controls
29 lines (24 loc) · 767 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#ifndef _VMPROF_STACK_H_
#define _VMPROF_STACK_H_
#ifdef _WIN32
#define intptr_t long // XXX windows VC++ 2008 lacks stdint.h
#else
#include <unistd.h>
#endif
#define VMPROF_CODE_TAG 1 /* <- also in cintf.py */
#define VMPROF_BLACKHOLE_TAG 2
#define VMPROF_JITTED_TAG 3
#define VMPROF_JITTING_TAG 4
#define VMPROF_GC_TAG 5
#define VMPROF_ASSEMBLER_TAG 6
// whatever we want here
typedef struct vmprof_stack_s {
struct vmprof_stack_s* next;
intptr_t value;
intptr_t kind;
} vmprof_stack_t;
// the kind is WORD so we consume exactly 3 WORDs and we don't have
// to worry too much. There is a potential for squeezing it with bit
// patterns into one WORD, but I don't want to care RIGHT NOW, potential
// for future optimization potential
#endif