forked from facebook/pyre-check
-
Notifications
You must be signed in to change notification settings - Fork 0
/
statistics.mli
55 lines (43 loc) · 1.21 KB
/
statistics.mli
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
(* Copyright (c) 2016-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree. *)
module GlobalState : sig
type t
val initialize : ?logger:string -> ?log_identifier:string -> ?project_name:string -> unit -> unit
val get : unit -> t
val restore : t -> unit
end
val disable : unit -> unit
val sample
: ?integers:(string * int) list ->
?normals:(string * string) list ->
?metadata:bool ->
unit ->
string
val flush : unit -> unit
val performance
: ?flush:bool ->
?randomly_log_every:int ->
?always_log_time_threshold:float ->
?section:Log.section ->
?category:string ->
name:string ->
timer:Timer.t ->
?phase_name:string ->
?integers:(string * int) list ->
?normals:(string * string) list ->
unit ->
unit
val event
: ?flush:bool ->
?randomly_log_every:int ->
?section:Log.section ->
name:string ->
?integers:(string * int) list ->
?normals:(string * string) list ->
unit ->
unit
val log_exception : exn -> fatal:bool -> origin:string -> unit
val log_worker_exception : pid:int -> origin:string -> Unix.process_status -> unit
val server_telemetry : (string * string) list -> unit