Module dev_cacheviz.erl¶
A device that generates renders (or renderable dot output) of a node's cache.
Function Index¶
dot/3 | Output the dot representation of the cache, or a specific path within
the cache set by the target key in the request. |
index/3 | Return a renderer in HTML form for the JSON format. |
js/3 | Return a JS library that can be used to render the JSON format. |
json/3 | Return a JSON representation of the cache graph, suitable for use with
the graph.js library. |
svg/3 | Output the SVG representation of the cache, or a specific path within
the cache set by the target key in the request. |
Function Details¶
dot/3¶
dot(X1, Req, Opts) -> any()
Output the dot representation of the cache, or a specific path within
the cache set by the target
key in the request.
index/3¶
index(Base, X2, Opts) -> any()
Return a renderer in HTML form for the JSON format.
js/3¶
js(X1, X2, Opts) -> any()
Return a JS library that can be used to render the JSON format.
json/3¶
json(Base, Req, Opts) -> any()
Return a JSON representation of the cache graph, suitable for use with
the graph.js
library. If the request specifies a target
key, we use that
target. Otherwise, we generate a new target by writing the message to the
cache and using the ID of the written message.
svg/3¶
svg(Base, Req, Opts) -> any()
Output the SVG representation of the cache, or a specific path within
the cache set by the target
key in the request.