Skip to content

Commit 7dfc1e2

Browse files
gleocadiedanielsn
andauthored
Cache virtual memory address to speed up normalization (#1048)
Co-authored-by: Daniel Schwartz-Narbonne <[email protected]>
1 parent 540ea1e commit 7dfc1e2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

datadog-crashtracker/src/crash_info/error_data.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,11 @@ pub struct ErrorData {
2020
impl ErrorData {
2121
pub fn normalize_ips(&mut self, pid: u32) -> anyhow::Result<()> {
2222
let mut errors = 0;
23-
let normalizer = blazesym::normalize::Normalizer::new();
23+
let normalizer = blazesym::normalize::Normalizer::builder()
24+
.enable_vma_caching(true)
25+
.enable_build_ids(true)
26+
.enable_build_id_caching(true)
27+
.build();
2428
let pid = pid.into();
2529
self.stack
2630
.normalize_ips(&normalizer, pid)

0 commit comments

Comments
 (0)