mirror of
https://github.com/fluencelabs/wasmer
synced 2025-06-21 20:51:32 +00:00
Various cleanups.
This commit is contained in:
@ -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);
|
||||
}))))
|
||||
}
|
||||
|
@ -1,9 +1 @@
|
||||
pub mod call_trace;
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
#[test]
|
||||
fn it_works() {
|
||||
assert_eq!(2 + 2, 4);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user