Skip to content

Commit 00c3cfe

Browse files
authored
Merge pull request #78 from tarides/update_trace_fuschia
Update trace-fuchsia.0.11
2 parents 4df76e2 + 3af1de8 commit 00c3cfe

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

dune-project

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
(ocaml (>= "5.0.0~"))
2020
hdr_histogram
2121
(cmdliner (>= 2.0.0))
22-
(trace-fuchsia (= 0.10))
23-
(trace (= 0.10))
22+
(trace-fuchsia (>= 0.11))
23+
(trace (>= 0.11))
2424
(menhir :with-test)
2525
(ocamlformat (and :with-dev-setup (= 0.28.1)))
2626
(alcotest (and :with-test (>= 1.9.0)))))

lib/olly_trace/olly_format_backend/olly_format_fuchsia.ml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ module Trace = Trace_fuchsia.Writer
88
type trace = {
99
doms : Trace.Thread_ref.t array;
1010
buf : Trace_fuchsia.Buf_chain.t;
11-
subscriber : Trace_fuchsia.Subscriber.t;
11+
collector : Trace_fuchsia.Collector_fuchsia.t;
1212
exporter : Trace_fuchsia.Exporter.t;
1313
}
1414

@@ -22,22 +22,22 @@ let create ~filename =
2222
let buf = Trace_fuchsia.Buf_chain.create ~sharded:true ~buf_pool () in
2323
let oc = Out_channel.open_bin filename in
2424
let exporter = Trace_fuchsia.Exporter.of_out_channel ~close_channel:true oc in
25-
let subscriber =
26-
Trace_fuchsia.Subscriber.create ~buf_pool ~pid:0 ~exporter ()
25+
let collector =
26+
Trace_fuchsia.Collector_fuchsia.create ~buf_pool ~pid:0 ~exporter ()
2727
in
2828
(* Adds the headers to output *)
29-
Trace_fuchsia.Subscriber.Callbacks.on_init subscriber ~time_ns:0L;
29+
Trace_fuchsia.Collector_fuchsia.callbacks.init collector;
3030
let doms =
3131
let max_doms = 128 in
3232
Array.init max_doms (fun i ->
3333
(* Use a different pid for each domain *)
3434
Trace.Thread_ref.ref (i + 1))
3535
in
36-
{ doms; buf; subscriber; exporter }
36+
{ doms; buf; collector; exporter }
3737

3838
let close trace =
3939
flush trace;
40-
Trace_fuchsia.Subscriber.close trace.subscriber
40+
Trace_fuchsia.Collector_fuchsia.close trace.collector
4141

4242
let emit trace evt =
4343
let open Event in

runtime_events_tools.opam

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ depends: [
1212
"ocaml" {>= "5.0.0~"}
1313
"hdr_histogram"
1414
"cmdliner" {>= "2.0.0"}
15-
"trace-fuchsia" {= "0.10"}
16-
"trace" {= "0.10"}
15+
"trace-fuchsia" {>= "0.11"}
16+
"trace" {>= "0.11"}
1717
"menhir" {with-test}
1818
"ocamlformat" {with-dev-setup & = "0.28.1"}
1919
"alcotest" {with-test & >= "1.9.0"}

0 commit comments

Comments
 (0)