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 21, 2024
1 parent f5a88ce commit 7900839
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 @@ -26,7 +26,7 @@ solana-compute-budget = { workspace = true }
solana-frozen-abi = { workspace = true, optional = true }
solana-frozen-abi-macro = { workspace = true, optional = true }
solana-measure = { workspace = true }
solana-metrics = { workspace = true }
# solana-metrics = { workspace = true }
solana-sdk = { workspace = true }
solana-type-overrides = { workspace = true }
solana-vote = { 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 @@ -5,8 +5,8 @@
#[macro_use]
extern crate eager;

#[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 @@ -303,14 +303,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 7900839

Please sign in to comment.