{"repo":"cloudflare/loom","free":true,"listed":false,"github":"https://github.com/cloudflare/loom","clone":"git clone https://github.com/cloudflare/loom.git","description":"Easier to read LuaJIT dumps","language":"Lua","stars":180,"topics":["lua","luajit","trace-report","debugging","bytecode"],"license":"MIT","category":"dev-tools","readme_excerpt":"LOOM ==== It's a replacement / enhancement of the -jdump option included in LuaJIT. As a command line argument === Just put it in a jit/ directory within package.path or $LUA PATH , typically '/usr/local/share/luajit-2.1..../jit/' ; but it also works in '/usr/local/share/lua/5.1/jit/' or even './jit/' . Then it can be used as an argument to LuaJIT in the form: -jloom[= [, ]] is a template file (default 'loom.html' ) and is an output file name (default io.stdout ). Lua API === If you want to report traces on just part of your code, it's better to use it explicitly. local loom = require 'jit.loom' As any module, you have to require() it first. loom.on() Starts recording all JIT events and traces. traces, funcs = loom.off() report = loom.off([f [, ...]]) Stops recording and performs any processing and cross references needed to actually generate a report. Called without any arguments, returns two Lua tables, one with the processed trace information and a second one with all the functions involved in those traces execution. The second form is equivalent to do local traces, funcs = loom.off() report = f(traces, funcs, ...) end That is, both return values (the traces and funcs arrays) are passed to the given function f , together with any extra argument, and returns any return value(s) of f . loom.start(tmpl, out) Implements the -jloom[=tmpl[,out]] option. The tmpl argument is passed to loom.template() to create a reporting function. If omitted, defaults to 'loom.html' . The out pa","default_branch":null,"files":null,"tree":[],"storefront":"/r/cloudflare","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/cloudflare/loom/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}