Skip to main content

luaur_code_gen/records/
compilation_stats.rs

1#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
2#[repr(C)]
3pub struct CompilationStats {
4    pub bytecode_size_bytes: usize,
5    pub native_code_size_bytes: usize,
6    pub native_data_size_bytes: usize,
7    pub native_metadata_size_bytes: usize,
8    pub functions_total: u32,
9    pub functions_compiled: u32,
10    pub functions_bound: u32,
11}
12
13#[allow(non_upper_case_globals)]
14impl CompilationStats {
15    pub const bytecodeSizeBytes: usize = 0;
16    pub const nativeCodeSizeBytes: usize = 0;
17    pub const nativeDataSizeBytes: usize = 0;
18    pub const nativeMetadataSizeBytes: usize = 0;
19    pub const functionsTotal: u32 = 0;
20    pub const functionsCompiled: u32 = 0;
21    pub const functionsBound: u32 = 0;
22}