A tool for viewing assembly and source.
Install with the usual Go commands:
go install loov.dev/[email protected]
For Linux you may need to add some additional dependencies. You can use
go install --tags nowayland loov.dev/[email protected] or
go install --tags nox11 loov.dev/[email protected] respectively to skip building Wayland or X11 version.
To run the program provide a regular expression filter for the
function you want to inspect.
-watch allows to automatically
reload the executable and information when it changes.
lensm -watch -filter Fibonacci lensm
Note: The program requires a binary that is built on your computer, otherwise the source code for the functions cannot be loaded.
I wrote a blog post at https://www.storj.io/blog/lensm on why and how the core functionality works.