跳转到内容
查看源码

entelechy trace自动生成

运行某个节点 Kernel 的一个元素,打印它的每个绑定。

终端窗口
trace <scene.esn> --node <name> (--element <i> | --at <x> <y> [<z>])

Evaluate the scene, then run one element of a node’s Kernel (or one step of a scan) on the interpreter and print every let of it with its value, and the result. Nothing is committed by the trace.

flag 取值 可重复 说明
--node <name> 否 The node whose Kernel is traced.
--element <i> 否 The element, or step of a scan, to trace.
--at <x> <y> [<z>] 否 The element to trace, by its coordinates.
--time <seconds> 否 The time the traced evaluation runs at (0 by default).
--window <w>x<h>[@<scale>] 否 The window a scene sized by window() fills, in pixels, with its scale factor.
--library <dir|file> 否 Kernels the scene uses beside its own.
--input <name>=<path> 是 Reads the scene’s input from the path given, a file or a directory as the input reads; an external the scene leaves to its caller bound to a picture file.
--output <name>=<path> 是 Writes the scene’s output to the path given, a file or a directory as the output writes.
--param <name>=<literal> 是 Sets a graph parameter.
--backend cpu|gpu|jit 否 The backend the scene runs on.
--no-fusion `` 否 Runs pointwise producers apart from their consumers.
--allow file.read|file.write|file.delete=<dir>|clipboard.read|clipboard.write 是 Lets the scene read files from, write its outputs into, or remove and rename files in, a directory; or read and write the system’s clipboard.
--grant <capability,...> 否 The only capabilities a Kernel may be given.
--memory <MB> 否 Mebibytes of Fields the Host may hold at once (2048 by default).
--work <M> 否 Million loop iterations one run of a Kernel may take (4000 by default).
--small <operations> 否 Operations a run may take, by its elements and its Kernel’s typical work, and go to the processor rather than the device (400000 by default; 0 keeps every run on the device).