Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mono / profiler / aot.h
1 #ifndef __MONO_PROFILER_AOT_H__
2 #define __MONO_PROFILER_AOT_H__
3
4 #include <config.h>
5
6 /*
7  * File format:
8  * - magic
9  * - major/minor version as an int, i.e. 0x00010001
10  * - sequence of records terminated by a record with type TYPE_NONE
11  * Record format:
12  * - 1 byte record type (AotProfRecordType)
13  * - 1 int record id
14  * - record specific data
15  * Encoding rules:
16  * - int - 4 bytes little endian
17  * - string - int length followed by data
18  */
19
20 typedef enum {
21         AOTPROF_RECORD_NONE,
22         AOTPROF_RECORD_IMAGE,
23         AOTPROF_RECORD_TYPE,
24         AOTPROF_RECORD_GINST,
25         AOTPROF_RECORD_METHOD
26 } AotProfRecordType;
27
28 #define AOT_PROFILER_MAGIC "AOTPROFILE"
29
30 #define AOT_PROFILER_MAJOR_VERSION 1
31 #define AOT_PROFILER_MINOR_VERSION 0
32
33 #endif /* __MONO_PROFILER_AOT_H__ */