Source file time_profile_store_j.ml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
[@@@ocaml.warning "-27-32-33-35-39"]
type profile = Time_profile_t.t
type t = Time_profile_store_t.t
type data = Time_profile_t.data
let write_profile = (
Time_profile_j.write_t
)
let string_of_profile ?(len = 1024) x =
let ob = Buffer.create len in
write_profile ob x;
Buffer.contents ob
let read_profile = (
Time_profile_j.read_t
)
let profile_of_string s =
read_profile (Yojson.Safe.init_lexer ()) (Lexing.from_string s)
let write__profile_list = (
Atdgen_runtime.Oj_run.write_list (
write_profile
)
)
let string_of__profile_list ?(len = 1024) x =
let ob = Buffer.create len in
write__profile_list ob x;
Buffer.contents ob
let read__profile_list = (
Atdgen_runtime.Oj_run.read_list (
read_profile
)
)
let _profile_list_of_string s =
read__profile_list (Yojson.Safe.init_lexer ()) (Lexing.from_string s)
let write_t = (
write__profile_list
)
let string_of_t ?(len = 1024) x =
let ob = Buffer.create len in
write_t ob x;
Buffer.contents ob
let read_t = (
read__profile_list
)
let t_of_string s =
read_t (Yojson.Safe.init_lexer ()) (Lexing.from_string s)
let write_data = (
Time_profile_j.write_data
)
let string_of_data ?(len = 1024) x =
let ob = Buffer.create len in
write_data ob x;
Buffer.contents ob
let read_data = (
Time_profile_j.read_data
)
let data_of_string s =
read_data (Yojson.Safe.init_lexer ()) (Lexing.from_string s)