You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
603 B

(*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
open! IStd
type t = OperationCost | AllocationCost | IOCost [@@deriving compare]
type kind_spec = {kind: t; (* for non-diff analysis *) top_and_bottom: bool}
val compare : t -> t -> int
val pp : Format.formatter -> t -> unit
val to_issue_string : t -> string
val to_json_cost_info : Jsonbug_t.cost_item -> t -> Jsonbug_t.cost_info
val enabled_cost_kinds : kind_spec list
val to_threshold : t -> int option