Module Protocol


module Protocol: sig .. end
The signature of protocol datas


type kind =
| Point
| Time
| Value_int
| Value_float
| Value_bool
| Value_string
| Tag_count
| Tag_size
| Ktree
| Hash
| Special (*for the garbage collector stats and total execution time*)
| Klog

type variant =
| Node of string * variant list
The type that will be observed in the module Tree.

type value =
| Int of int
| Float of float
| String of string
| Bool of bool
| Int64 of Int64.t
| Tree of variant
| No_value
| Collected
| Killed
| Hashtable of value * value * value * value
| Log of (float * string) list
type tag = int 
A tag is an unique representation of a Ocamlviz data. The tags 0,1,2 are always taken.

type msg =
| Declare of tag * kind * string
| Send of tag * value
| Bind of tag list
There are 3 sorts of messages: