summaryrefslogtreecommitdiff
path: root/rust/examples/dwarf/dwarf_import/src/dwarfdebuginfo.rs
diff options
context:
space:
mode:
authorJosh Ferrell <josh@vector35.com>2024-10-18 17:41:46 -0400
committerJosh Ferrell <josh@vector35.com>2024-10-18 17:41:46 -0400
commit36c49a4a9166c7fc8749d987d609fcd00ff226a7 (patch)
tree42dca0fc9f371ba9bfb54768c3264aca763e8b44 /rust/examples/dwarf/dwarf_import/src/dwarfdebuginfo.rs
parent62570f741c2bfb705a29389e0386541bff45dba6 (diff)
Add progress reporting to first phase of DWARF parsing
Diffstat (limited to 'rust/examples/dwarf/dwarf_import/src/dwarfdebuginfo.rs')
-rw-r--r--rust/examples/dwarf/dwarf_import/src/dwarfdebuginfo.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/rust/examples/dwarf/dwarf_import/src/dwarfdebuginfo.rs b/rust/examples/dwarf/dwarf_import/src/dwarfdebuginfo.rs
index 03a237db..4c231a88 100644
--- a/rust/examples/dwarf/dwarf_import/src/dwarfdebuginfo.rs
+++ b/rust/examples/dwarf/dwarf_import/src/dwarfdebuginfo.rs
@@ -118,6 +118,7 @@ pub(crate) struct DebugInfoBuilderContext<R: ReaderType> {
names: HashMap<TypeUID, String>,
default_address_size: usize,
pub(crate) total_die_count: usize,
+ pub(crate) total_unit_size_bytes: usize,
}
impl<R: ReaderType> DebugInfoBuilderContext<R> {
@@ -153,6 +154,7 @@ impl<R: ReaderType> DebugInfoBuilderContext<R> {
names: HashMap::new(),
default_address_size: view.address_size(),
total_die_count: 0,
+ total_unit_size_bytes: 0,
})
}