ext/pf2/src/ringbuffer.rs in pf2-0.2.0 vs ext/pf2/src/ringbuffer.rs in pf2-0.3.0

- old
+ new

@@ -69,17 +69,19 @@ ruby_thread: 1, timestamp: Instant::now(), line_count: 0, frames: [0; 500], linenos: [0; 500], + c_backtrace_pcs: [0; 1001], }; let sample2 = Sample { ruby_thread: 2, timestamp: Instant::now(), line_count: 0, frames: [0; 500], linenos: [0; 500], + c_backtrace_pcs: [0; 1001], }; ringbuffer.push(sample1).unwrap(); ringbuffer.push(sample2).unwrap(); @@ -95,17 +97,19 @@ ruby_thread: 1, timestamp: Instant::now(), line_count: 0, frames: [0; 500], linenos: [0; 500], + c_backtrace_pcs: [0; 1001], }; let sample2 = Sample { ruby_thread: 2, timestamp: Instant::now(), line_count: 0, frames: [0; 500], linenos: [0; 500], + c_backtrace_pcs: [0; 1001], }; ringbuffer.push(sample1).unwrap(); assert_eq!(ringbuffer.push(sample2), Err(RingbufferError::Full)); } @@ -117,23 +121,26 @@ ruby_thread: 1, timestamp: Instant::now(), line_count: 0, frames: [0; 500], linenos: [0; 500], + c_backtrace_pcs: [0; 1001], }; let sample2 = Sample { ruby_thread: 2, timestamp: Instant::now(), line_count: 0, frames: [0; 500], linenos: [0; 500], + c_backtrace_pcs: [0; 1001], }; let sample3 = Sample { ruby_thread: 3, timestamp: Instant::now(), line_count: 0, frames: [0; 500], linenos: [0; 500], + c_backtrace_pcs: [0; 1001], }; ringbuffer.push(sample1).unwrap(); ringbuffer.pop().unwrap(); ringbuffer.push(sample2).unwrap();