-
Notifications
You must be signed in to change notification settings - Fork 412
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Jeremie Dimino <[email protected]>
- Loading branch information
1 parent
8ba00b4
commit adbecd5
Showing
8 changed files
with
167 additions
and
129 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,30 @@ | ||
val restore_cwd_and_execve : string -> string list -> env:Env.t -> _ | ||
|
||
type resource_usage = | ||
{ utime : float | ||
; stime : float | ||
} | ||
module Resource_usage : sig | ||
type t = | ||
{ user_cpu_time : float | ||
(** Same as the "user" time reported by the "time" command *) | ||
; system_cpu_time : float | ||
(** Same as the "sys" time reported by the "time" command *) | ||
} | ||
end | ||
|
||
val wait3 : Unix.wait_flag list -> int * Unix.process_status * resource_usage | ||
module Times : sig | ||
type t = | ||
{ elapsed_time : float | ||
(** Same as the "real" time reported by the "time" command *) | ||
; resource_usage : Resource_usage.t option | ||
} | ||
end | ||
|
||
module Process_info : sig | ||
type t = | ||
{ pid : Pid.t | ||
; status : Unix.process_status | ||
; end_time : float (** Time at which the process finished. *) | ||
; resource_usage : Resource_usage.t option | ||
} | ||
end | ||
|
||
(** This function is not implemented on Windows *) | ||
val wait : Unix.wait_flag list -> Process_info.t |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.