objectdump.rs 377 Bytes
Newer Older
qinsoon's avatar
qinsoon committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
use utils::Address;
use utils::ByteSize;
use std::collections::HashMap;

pub struct HeapDump {
    pub objects: HashMap<Address, ObjectDump>,
    pub relocatable_refs: HashMap<Address, String>
}

#[derive(Debug, Clone)]
pub struct ObjectDump {
    pub reference_addr: Address,

    pub mem_start: Address,
    pub mem_size : ByteSize,
    pub reference_offsets: Vec<ByteSize>
}