Skip to content
This repository was archived by the owner on Aug 27, 2025. It is now read-only.

Commit 77843fb

Browse files
Add optional memtrace
1 parent e762f38 commit 77843fb

File tree

4 files changed

+5
-2
lines changed

4 files changed

+5
-2
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@
5050
"@opam/stdint": ">=0.5.1 <0.8.0",
5151
"@opam/yojson": ">=1.7.0 <2.1.0",
5252
"@opam/opium": ">=0.20.0 <1.0.0",
53-
"@opam/ezcurl": ">=0.2.4 <0.3.0"
53+
"@opam/ezcurl": ">=0.2.4 <0.3.0",
54+
"@opam/memtrace": ">=0.2.3 <0.3.0"
5455
},
5556
"devDependencies": {
5657
"@opam/merlin": "*",

scilla.opam

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ depends: [
5151
"yojson" {>= "1.7.0" & < "2.1~"}
5252
"opium" {>= "0.20.0" & < "1.0.0"}
5353
"ezcurl" {>= "0.2.4" & < "0.3.0"}
54+
"memtrace" {>= "0.2.3" & < "0.3.0"}
5455
]
5556
build: [
5657
[ "./scripts/build_deps.sh" ]

src/runners/dune

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
disambiguate_state_json scilla_fmt scilla_merger scilla_server_http)
99
(libraries core core_unix.command_unix angstrom yojson cryptokit fileutils
1010
scilla_base scilla_eval scilla_server_lib scilla_crypto scilla_format
11-
scilla_merge cmdliner opium)
11+
scilla_merge cmdliner opium memtrace)
1212
(modes byte native)
1313
(preprocess
1414
(pps ppx_sexp_conv ppx_deriving_yojson ppx_let ppx_deriving.show bisect_ppx --conditional)))

src/runners/scilla_server_http.ml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ let run_handler req =
6666
;;
6767

6868
let _ =
69+
Memtrace.trace_if_requested ~context:"scilla-server" ();
6970
App.empty
7071
|> App.post "/run" (Error_checking_mutex.synchronize run_handler)
7172
|> App.run_command

0 commit comments

Comments
 (0)