-
Notifications
You must be signed in to change notification settings - Fork 11.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable tracing in the execution layer #21165
Changes from 13 commits
c71c190
c3f6693
c5d0520
38b3896
fac0398
f628be8
163ddeb
8720ed2
cef8735
f60a4c1
6ccdaf6
d6662c0
343f263
bb76c6b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -617,6 +617,7 @@ mod test { | |
kind, | ||
signer, | ||
genesis_digest, | ||
&mut None, | ||
); | ||
|
||
assert_eq!(&effects, genesis.effects()); | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -217,6 +217,12 @@ impl MoveTrace { | |
} | ||
} | ||
|
||
impl Default for MoveTrace { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We have this clippy note disabled in There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Fwiw, I got clippy complaining about it in CI... |
||
fn default() -> Self { | ||
Self::new() | ||
} | ||
} | ||
|
||
impl MoveTraceBuilder { | ||
/// Create a new `MoveTraceBuilder` with no additional tracing. | ||
pub fn new() -> Self { | ||
|
@@ -314,6 +320,12 @@ impl MoveTraceBuilder { | |
} | ||
} | ||
|
||
impl Default for MoveTraceBuilder { | ||
fn default() -> Self { | ||
Self::new() | ||
} | ||
} | ||
|
||
impl Display for TraceValue { | ||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { | ||
match self { | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -138,6 +138,12 @@ impl TraceState { | |
} | ||
} | ||
|
||
impl Default for TraceState { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
fn default() -> Self { | ||
Self::new() | ||
} | ||
} | ||
|
||
impl Tracer for TraceState { | ||
fn notify(&mut self, event: &TraceEvent, mut write: Writer<'_>) { | ||
self.apply_event(event); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a bit of a "my bad" situation here -- I don't think
move-trace-format
needs all these different crates (or at least doesn't use them). So I think removing them from themove-trace-format
crate should allow you to remove them here and just import themove-trace-format
crate.