ext/pf2/src/serialization/profile.rs in pf2-0.6.0 vs ext/pf2/src/serialization/profile.rs in pf2-0.7.0
- old
+ new
@@ -14,10 +14,11 @@
#[derive(Clone, Serialize, Deserialize)]
pub struct Sample {
/// The stack leading to this sample.
/// The leaf node will be stored at `stack[0]`.
pub stack: Vec<LocationIndex>,
+ pub native_stack: Vec<LocationIndex>,
pub ruby_thread_id: Option<u64>,
}
/// Location represents a location (line) in the source code when a sample was captured.
#[derive(Clone, PartialEq, Serialize, Deserialize)]
@@ -40,7 +41,7 @@
}
#[derive(Clone, PartialEq, Serialize, Deserialize)]
pub enum FunctionImplementation {
Ruby,
- C,
+ Native,
}