Skip to content

Commit

Permalink
solana-program-runtime: remove solana-metrics for wasm
Browse files Browse the repository at this point in the history
  • Loading branch information
fanatid committed Nov 25, 2024
1 parent adeac02 commit 41e5431
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 12 deletions.
1 change: 0 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion program-runtime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ solana-frozen-abi-macro = { workspace = true, optional = true, features = [
] }
solana-log-collector = { workspace = true }
solana-measure = { workspace = true }
solana-metrics = { workspace = true }
# solana-metrics = { workspace = true }
solana-sdk = { workspace = true }
solana-timings = { workspace = true }
solana-type-overrides = { workspace = true }
Expand Down
4 changes: 2 additions & 2 deletions program-runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
#![deny(clippy::arithmetic_side_effects)]
#![deny(clippy::indexing_slicing)]

#[macro_use]
extern crate solana_metrics;
// #[macro_use]
// extern crate solana_metrics;

pub use solana_rbpf;
pub mod invoke_context;
Expand Down
16 changes: 8 additions & 8 deletions program-runtime/src/loaded_programs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -296,14 +296,14 @@ impl LoadProgramMetrics {
saturating_add_assign!(timings.create_executor_load_elf_us, self.load_elf_us);
saturating_add_assign!(timings.create_executor_verify_code_us, self.verify_code_us);
saturating_add_assign!(timings.create_executor_jit_compile_us, self.jit_compile_us);
datapoint_trace!(
"create_executor_trace",
("program_id", self.program_id, String),
("register_syscalls_us", self.register_syscalls_us, i64),
("load_elf_us", self.load_elf_us, i64),
("verify_code_us", self.verify_code_us, i64),
("jit_compile_us", self.jit_compile_us, i64),
);
// datapoint_trace!(
// "create_executor_trace",
// ("program_id", self.program_id, String),
// ("register_syscalls_us", self.register_syscalls_us, i64),
// ("load_elf_us", self.load_elf_us, i64),
// ("verify_code_us", self.verify_code_us, i64),
// ("jit_compile_us", self.jit_compile_us, i64),
// );
}
}

Expand Down

0 comments on commit 41e5431

Please sign in to comment.