-
Notifications
You must be signed in to change notification settings - Fork 0
Update tracing for PGO #15
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
Conversation
@@ -32,7 +32,7 @@ pub trait LocalOpcode { | |||
|
|||
#[repr(C)] | |||
#[derive(Copy, Clone, Debug, Hash, PartialEq, Eq, derive_new::new, Serialize, Deserialize)] | |||
pub struct VmOpcode(usize); |
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.
no needed, call as_usize
crates/vm/src/arch/segment.rs
Outdated
let step = self.chip_complex.base.program_chip.program.step; | ||
let pc = pc_base + (step * (index as u32)); | ||
tracing::debug!("pc: {pc:#x} | index: {index} | instruction: {instruction:?}"); | ||
}); |
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.
Is this for debug only? Can we remove?
crates/vm/src/arch/segment.rs
Outdated
// tracing::trace!("pc: {pc:#x} | time: {timestamp} | {:?}", instruction); | ||
// update the trace event for logging instructions in execution order in our profiler via a custom subscriber | ||
tracing::trace!( | ||
pc = pc, |
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.
I think we should have pc only
Changes needed for https://github.com/powdr-labs/powdr-openvm/pull/82/.