Bump corefx
[mono-project.git] / mono / profiler / mono-profiler-aot.h
blob7663cab70fe8c0f789c08a9608775aaafa4f2295
1 #ifndef __MONO_PROFILER_AOT_H__
2 #define __MONO_PROFILER_AOT_H__
4 #include <config.h>
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
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;
28 #define AOT_PROFILER_MAGIC "AOTPROFILE"
30 #define AOT_PROFILER_MAJOR_VERSION 1
31 #define AOT_PROFILER_MINOR_VERSION 0
33 #endif /* __MONO_PROFILER_AOT_H__ */