package b0

  1. Overview
  2. Docs
On This Page
  1. CPU time counters
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Time.SpanSource

CPU time spans.

CPU time counters

Sourcetype t

The type for CPU execution time spans.

Sourceval make : utime:Mtime.Span.t -> stime:Mtime.Span.t -> children_utime:Mtime.Span.t -> children_stime:Mtime.Span.t -> t

make ~utime ~stime ~children_utime ~children_stime is a cpu span with the given fields. See accessors for semantics.

Sourceval zero : t

zero is zero CPU times.

Sourceval utime : t -> Mtime.Span.t

utime cpu is the user time of cpu.

Sourceval stime : t -> Mtime.Span.t

stime cpu is the system time of cpu.

Sourceval children_utime : t -> Mtime.Span.t

children_utime cpu is the user time for children processes of cpu.

Sourceval children_stime : t -> Mtime.Span.t

children_stime cpu is the system time for children processes of cpu.