Skip to content

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

Merged
merged 7 commits into from
Apr 25, 2025
Merged

Update tracing for PGO #15

merged 7 commits into from
Apr 25, 2025

Conversation

qwang98
Copy link

@qwang98 qwang98 commented Apr 24, 2025

@@ -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);
Copy link

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

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:?}");
});
Copy link
Member

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?

// 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,
Copy link
Member

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

@leonardoalt leonardoalt merged commit 2868049 into main Apr 25, 2025
0 of 19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants