Various cleanups.

This commit is contained in:
losfair
2019-04-28 12:48:01 +08:00
parent 2262c8a6da
commit 6beb76c3ae
4 changed files with 5 additions and 13 deletions

View File

@ -15,7 +15,7 @@ impl FunctionMiddleware for CallTrace {
) -> Result<(), Self::Error> {
match op {
Event::Internal(InternalEvent::FunctionBegin(id)) => {
sink.push(Event::Internal(InternalEvent::Bkpt(Box::new(move |_| {
sink.push(Event::Internal(InternalEvent::Breakpoint(Box::new(move |_| {
println!("func ({})", id);
}))))
}

View File

@ -1,9 +1 @@
pub mod call_trace;
#[cfg(test)]
mod tests {
#[test]
fn it_works() {
assert_eq!(2 + 2, 4);
}
}