package b0

  1. Overview
  2. Docs
On This Page
  1. Logs
  2. IO
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module B0_memo_logSource

Memo log.

A log has all the build operations, the hashed file paths and a few global timings.

Logs

Sourcetype t

The type for B0_memo logs.

Sourceval of_memo : B0_memo.t -> t

of_memo m is a log for memo m.

Sourceval hash_fun : t -> string

hash_fun is the identifier of the hash function that was used.

Sourceval file_hashes : t -> B0_hash.t B0_std.Fpath.Map.t

file_hashes l has all the files that were hashed through the memo.

Sourceval hash_dur : t -> B0_std.Mtime.Span.t

hash_dur l is the time span spent hashing.

Sourceval total_dur : t -> B0_std.Mtime.Span.t

total_dur l is the time spanning from B0_memo.make to of_memo.

cpu_dur l is the CPU time spanning from B0_memo.make to of_memo.

Sourceval jobs : t -> int

jobs l is the maximal number of concurent spawns given to the build operation executor.

Sourceval ops : t -> B0_zero.Op.t list

ops l are the operations of the log.

IO

Sourceval bincode : t B0_bincode.t

bincode is a binary codec for logs.

Sourceval write : B0_std.Fpath.t -> t -> (unit, string) result

write f l writes log l to file f.

Sourceval read : B0_std.Fpath.t -> (t, string) result

read f read a log from file f.