luaur_code_gen/records/
function_stats.rs1extern crate alloc;
2
3use alloc::string::String;
4use alloc::vec::Vec;
5
6#[derive(Debug, Clone, PartialEq, Eq, Hash)]
7pub struct FunctionStats {
8 pub name: String,
9 pub line: i32,
10 pub bcode_count: u32,
11 pub ir_count: u32,
12 pub asm_count: u32,
13 pub asm_size: u32,
14 pub bytecode_summary: Vec<Vec<u32>>,
15}
16
17impl Default for FunctionStats {
18 fn default() -> Self {
19 Self {
20 name: String::new(),
21 line: -1,
22 bcode_count: 0,
23 ir_count: 0,
24 asm_count: 0,
25 asm_size: 0,
26 bytecode_summary: Vec::new(),
27 }
28 }
29}