Skip to content
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

Remove verifier memory stats logging #10236

Merged
merged 1 commit into from
Feb 14, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 3 additions & 11 deletions src/lib/verifier/prod.ml
Original file line number Diff line number Diff line change
Expand Up @@ -439,19 +439,11 @@ let verify_blockchain_snarks { worker; logger } chains =
|> Deferred.Or_error.map ~f:(fun x -> `Continue x)
]))

module Id = Unique_id.Int ()

let verify_transaction_snarks { worker; logger } ts =
trace_recurring "Verifier.verify_transaction_snarks" (fun () ->
let id = Id.create () in
let n = List.length ts in
let metadata () =
("id", `String (Id.to_string id))
:: ("n", `Int n)
:: Memory_stats.(jemalloc_memory_stats () @ ocaml_memory_stats ())
in
[%log trace] "verify $n transaction_snarks (before)"
~metadata:(metadata ()) ;
let metadata = [ ("n", `Int n) ] in
[%log trace] "verify $n transaction_snarks (before)" ~metadata ;
let%map res =
with_retry ~logger (fun () ->
let%bind { connection; _ } = Ivar.read !worker in
Expand All @@ -463,7 +455,7 @@ let verify_transaction_snarks { worker; logger } ts =
~metadata:
( ( "result"
, `String (Sexp.to_string ([%sexp_of: bool Or_error.t] res)) )
:: metadata () ) ;
:: metadata ) ;
res)

let verify_commands { worker; logger } ts =
Expand Down