Skip to content

Commit 784aa11

Browse files
feat: re-add old debug_info_by_pid field for old report backend parsing
1 parent 5f0e7a4 commit 784aa11

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

crates/runner-shared/src/metadata.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ pub struct PerfMetadata {
2828
#[deprecated(note = "Use ExecutionTimestamps in the 'artifacts' module instead")]
2929
pub markers: Vec<MarkerType>,
3030

31+
/// Kept for backward compatibility, was used before deduplication of debug info entries.
32+
#[serde(default, skip_serializing_if = "HashMap::is_empty")]
33+
#[deprecated(note = "Use 'debug_info' + 'debug_info_pid_mappings_by_pid' instead")]
34+
pub debug_info_by_pid: HashMap<i32, Vec<ModuleDebugInfo>>,
35+
3136
/// Deduplicated debug info entries, keyed by semantic key
3237
#[serde(default, skip_serializing_if = "HashMap::is_empty")]
3338
pub debug_info: HashMap<String, ModuleDebugInfo>,

src/executor/wall_time/perf/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -502,6 +502,7 @@ impl BenchmarkData {
502502
debug_info_pid_mappings_by_pid,
503503
unwind_data_pid_mappings_by_pid,
504504
symbol_pid_mappings_by_pid,
505+
debug_info_by_pid: Default::default(), // No longer used
505506
};
506507
metadata.save_to(&path).unwrap();
507508

0 commit comments

Comments
 (0)