Skip to content

Commit 1be514a

Browse files
committed
feat: add support for address in Reference
1 parent 000e78c commit 1be514a

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "runtime_tracing"
3-
version = "0.9.0"
3+
version = "0.10.0"
44
edition = "2021"
55
authors = ["Metacraft Labs Ltd"]
66
description = "A library for the schema and tracing helpers for the CodeTracer db trace format"

src/lib.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,13 +117,14 @@ mod tests {
117117
let reference_type = TypeRecord {
118118
kind: TypeKind::Pointer,
119119
lang_type: "MyReference<Int>".to_string(),
120-
specific_info: TypeSpecificInfo::Pointer {
121-
dereference_type_id: tracer.ensure_type_id(TypeKind::Int, "Int")
122-
}
120+
specific_info: TypeSpecificInfo::Pointer {
121+
dereference_type_id: tracer.ensure_type_id(TypeKind::Int, "Int"),
122+
},
123123
};
124124
let reference_type_id = tracer.ensure_raw_type_id(reference_type);
125125
let _reference_value = ValueRecord::Reference {
126126
dereferenced: Box::new(int_value_1.clone()),
127+
address: 0,
127128
mutable: false,
128129
type_id: reference_type_id,
129130
};

src/types.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,7 @@ pub enum ValueRecord {
362362
// or more fields (address?)
363363
Reference {
364364
dereferenced: Box<ValueRecord>,
365+
address: u64,
365366
mutable: bool,
366367
type_id: TypeId,
367368
},

0 commit comments

Comments
 (0)