diff --git a/manifest/product_octez.ml b/manifest/product_octez.ml index de5c5229f01497f2b67e7717fd47221ea50d464e..ba4cfcc571643dc3dcdade1826b0d450b46b5b01 100644 --- a/manifest/product_octez.ml +++ b/manifest/product_octez.ml @@ -7021,6 +7021,7 @@ let hash = Protocol.hash baking_commands |> if_some |> open_; octez_stdlib_unix |> open_; octez_client_base_unix |> open_; + octez_profiler_backends |> open_; ] in let _baker = daemon "baker" in diff --git a/src/proto_021_PsQuebec/bin_accuser/dune b/src/proto_021_PsQuebec/bin_accuser/dune index 137d2f576760db4ee0a4742e0b4d9daa3793a57e..1a2308ab6d90dbf6fc8bdec7992c6320c3cbf50c 100644 --- a/src/proto_021_PsQuebec/bin_accuser/dune +++ b/src/proto_021_PsQuebec/bin_accuser/dune @@ -16,7 +16,8 @@ octez-shell-libs.client-commands octez-protocol-021-PsQuebec-libs.baking-commands octez-libs.stdlib-unix - octez-shell-libs.client-base-unix) + octez-shell-libs.client-base-unix + octez-libs.octez-profiler.backends) (link_flags (:standard) (:include %{workspace_root}/static-link-flags.sexp) @@ -29,4 +30,5 @@ -open Tezos_client_commands -open Tezos_baking_021_PsQuebec_commands -open Tezos_stdlib_unix - -open Tezos_client_base_unix)) + -open Tezos_client_base_unix + -open Tezos_profiler_backends)) diff --git a/src/proto_021_PsQuebec/bin_baker/dune b/src/proto_021_PsQuebec/bin_baker/dune index 85e70a7bf7a6071593b1d0323c4f49cc4d436ee5..315c7a12a475ce182ef64f4c8c487f49817da20b 100644 --- a/src/proto_021_PsQuebec/bin_baker/dune +++ b/src/proto_021_PsQuebec/bin_baker/dune @@ -16,7 +16,8 @@ octez-shell-libs.client-commands octez-protocol-021-PsQuebec-libs.baking-commands octez-libs.stdlib-unix - octez-shell-libs.client-base-unix) + octez-shell-libs.client-base-unix + octez-libs.octez-profiler.backends) (link_flags (:standard) (:include %{workspace_root}/static-link-flags.sexp) @@ -29,4 +30,5 @@ -open Tezos_client_commands -open Tezos_baking_021_PsQuebec_commands -open Tezos_stdlib_unix - -open Tezos_client_base_unix)) + -open Tezos_client_base_unix + -open Tezos_profiler_backends)) diff --git a/src/proto_021_PsQuebec/bin_baker/main_baker_021_PsQuebec.ml b/src/proto_021_PsQuebec/bin_baker/main_baker_021_PsQuebec.ml index 05b95923263b32261a557a9029f8e980c0684cdc..bf7eeba80cbb78781795af5de43ae47e9c953185 100644 --- a/src/proto_021_PsQuebec/bin_baker/main_baker_021_PsQuebec.ml +++ b/src/proto_021_PsQuebec/bin_baker/main_baker_021_PsQuebec.ml @@ -24,6 +24,9 @@ (* *) (*****************************************************************************) +(** Force linking for having Simple_profiler to init few backends by itself *) +let () = ignore Simple_profiler.headless + let () = Client_commands.register Protocol.hash @@ fun _network -> List.map (Tezos_clic.map_command (new Protocol_client_context.wrap_full)) diff --git a/src/proto_alpha/bin_accuser/dune b/src/proto_alpha/bin_accuser/dune index 03801c83b3c3a6c7b5a93a12be083a9ea14bb23a..6ac28dfde23ccd764fe4ec262345f9fa7d00a4fd 100644 --- a/src/proto_alpha/bin_accuser/dune +++ b/src/proto_alpha/bin_accuser/dune @@ -16,7 +16,8 @@ octez-shell-libs.client-commands octez-protocol-alpha-libs.baking-commands octez-libs.stdlib-unix - octez-shell-libs.client-base-unix) + octez-shell-libs.client-base-unix + octez-libs.octez-profiler.backends) (link_flags (:standard) (:include %{workspace_root}/static-link-flags.sexp) @@ -29,4 +30,5 @@ -open Tezos_client_commands -open Tezos_baking_alpha_commands -open Tezos_stdlib_unix - -open Tezos_client_base_unix)) + -open Tezos_client_base_unix + -open Tezos_profiler_backends)) diff --git a/src/proto_alpha/bin_baker/dune b/src/proto_alpha/bin_baker/dune index 1aa4f97899a447295a1ae8ed365c0b23e40ae783..b61b7334fc358c8983ae513cb20e262ad0e57338 100644 --- a/src/proto_alpha/bin_baker/dune +++ b/src/proto_alpha/bin_baker/dune @@ -16,7 +16,8 @@ octez-shell-libs.client-commands octez-protocol-alpha-libs.baking-commands octez-libs.stdlib-unix - octez-shell-libs.client-base-unix) + octez-shell-libs.client-base-unix + octez-libs.octez-profiler.backends) (link_flags (:standard) (:include %{workspace_root}/static-link-flags.sexp) @@ -29,4 +30,5 @@ -open Tezos_client_commands -open Tezos_baking_alpha_commands -open Tezos_stdlib_unix - -open Tezos_client_base_unix)) + -open Tezos_client_base_unix + -open Tezos_profiler_backends)) diff --git a/src/proto_alpha/bin_baker/main_baker_alpha.ml b/src/proto_alpha/bin_baker/main_baker_alpha.ml index 05b95923263b32261a557a9029f8e980c0684cdc..bf7eeba80cbb78781795af5de43ae47e9c953185 100644 --- a/src/proto_alpha/bin_baker/main_baker_alpha.ml +++ b/src/proto_alpha/bin_baker/main_baker_alpha.ml @@ -24,6 +24,9 @@ (* *) (*****************************************************************************) +(** Force linking for having Simple_profiler to init few backends by itself *) +let () = ignore Simple_profiler.headless + let () = Client_commands.register Protocol.hash @@ fun _network -> List.map (Tezos_clic.map_command (new Protocol_client_context.wrap_full)) diff --git a/src/proto_next/bin_accuser/dune b/src/proto_next/bin_accuser/dune index b36c5f31b0ac2024d452974313575867820a38bd..ebbf0d9b52e2c1f4612ce9024e3c22044b67b958 100644 --- a/src/proto_next/bin_accuser/dune +++ b/src/proto_next/bin_accuser/dune @@ -16,7 +16,8 @@ octez-shell-libs.client-commands octez-protocol-next-libs.baking-commands octez-libs.stdlib-unix - octez-shell-libs.client-base-unix) + octez-shell-libs.client-base-unix + octez-libs.octez-profiler.backends) (link_flags (:standard) (:include %{workspace_root}/static-link-flags.sexp) @@ -29,4 +30,5 @@ -open Tezos_client_commands -open Tezos_baking_next_commands -open Tezos_stdlib_unix - -open Tezos_client_base_unix)) + -open Tezos_client_base_unix + -open Tezos_profiler_backends)) diff --git a/src/proto_next/bin_baker/dune b/src/proto_next/bin_baker/dune index 50fc43aee1be9d76626a6143967b8fb1d1901b1c..3e5740c0245b385bc730064685e83485a9e24008 100644 --- a/src/proto_next/bin_baker/dune +++ b/src/proto_next/bin_baker/dune @@ -16,7 +16,8 @@ octez-shell-libs.client-commands octez-protocol-next-libs.baking-commands octez-libs.stdlib-unix - octez-shell-libs.client-base-unix) + octez-shell-libs.client-base-unix + octez-libs.octez-profiler.backends) (link_flags (:standard) (:include %{workspace_root}/static-link-flags.sexp) @@ -29,4 +30,5 @@ -open Tezos_client_commands -open Tezos_baking_next_commands -open Tezos_stdlib_unix - -open Tezos_client_base_unix)) + -open Tezos_client_base_unix + -open Tezos_profiler_backends)) diff --git a/src/proto_next/bin_baker/main_baker_next.ml b/src/proto_next/bin_baker/main_baker_next.ml index 05b95923263b32261a557a9029f8e980c0684cdc..bf7eeba80cbb78781795af5de43ae47e9c953185 100644 --- a/src/proto_next/bin_baker/main_baker_next.ml +++ b/src/proto_next/bin_baker/main_baker_next.ml @@ -24,6 +24,9 @@ (* *) (*****************************************************************************) +(** Force linking for having Simple_profiler to init few backends by itself *) +let () = ignore Simple_profiler.headless + let () = Client_commands.register Protocol.hash @@ fun _network -> List.map (Tezos_clic.map_command (new Protocol_client_context.wrap_full))