{"id":20347486,"url":"https://github.com/evilmartians/furnace-xray","last_synced_at":"2025-04-12T00:56:12.786Z","repository":{"id":4785646,"uuid":"5937910","full_name":"evilmartians/furnace-xray","owner":"evilmartians","description":"A visualizer for transformations of code in Static Single Assignment form based on the Furnace library.","archived":false,"fork":false,"pushed_at":"2013-03-29T09:32:36.000Z","size":894,"stargazers_count":12,"open_issues_count":0,"forks_count":5,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-04-12T00:55:35.417Z","etag":null,"topics":["programming-language","visualizer"],"latest_commit_sha":null,"homepage":"","language":"CoffeeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/evilmartians.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-09-24T17:16:07.000Z","updated_at":"2025-02-27T17:56:45.000Z","dependencies_parsed_at":"2022-08-25T22:41:27.845Z","dependency_job_id":null,"html_url":"https://github.com/evilmartians/furnace-xray","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evilmartians%2Ffurnace-xray","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evilmartians%2Ffurnace-xray/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evilmartians%2Ffurnace-xray/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evilmartians%2Ffurnace-xray/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/evilmartians","download_url":"https://codeload.github.com/evilmartians/furnace-xray/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248501878,"owners_count":21114683,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["programming-language","visualizer"],"created_at":"2024-11-14T22:16:52.962Z","updated_at":"2025-04-12T00:56:12.734Z","avatar_url":"https://github.com/evilmartians.png","language":"CoffeeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Furnace X-Ray\n\nFurnace X-Ray is a visualizer for transformations performed on Static Single\nAssignment form in the [Furnace][] framework.\n\n  [Furnace]: http://github.com/whitequark/furnace\n\n## Installation\n\n    $ gem install furnace-xray\n\n## Usage\n\nFirst, you need to enable instrumentation for the functions you want to\nobserve. Here is a sample snippet:\n\n``` ruby\nmod = SSA::Module.new\n\nfun = SSA::Function.new('my-function')\n\n# It is important to enable instrumentation before doing anything else\n# with the function. Otherwise, the collected data will be invalid.\nfun.instrumentaiton = SSA::EventStream.new\nmod.add fun\n\n# Optionally, notify the instrumentation engine that you have started\n# a transformation.\nfun.instrumentation.transform_start \"Set return type\"\n\n# Now, do whatever you want with the function.\nfun.return_type = SSA.void_type\n\n# After you have finished transforming functions, fetch the instrumentation\n# data and dump it as JSON.\nFile.write(\"data.json\", JSON.dump(mod.instrumentation))\n```\n\nTo view collected data, just point furnace-xray to it:\n\n    $ furnace-xray data.json\n    [2013-01-27 20:05:13] INFO  WEBrick 1.3.1\n    [2013-01-27 20:05:13] INFO  ruby 1.9.3 (2012-04-20) [x86_64-linux]\n    == Sinatra/1.3.3 has taken the stage on 4567 for development with backup from WEBrick\n    [2013-01-27 20:05:13] INFO  WEBrick::HTTPServer#start: pid=28695 port=4567\n\nNow, open your ~~browser~~ Chrome or Chromium and point it to\nhttp://localhost:4567.\n\n![](http://f.cl.ly/items/2t0p052l1J1m283r2W2b/furnace-xray.png)\n\n## Contributing\n\n1. Fork it\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request\n\n## License\n\nMIT.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevilmartians%2Ffurnace-xray","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fevilmartians%2Ffurnace-xray","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevilmartians%2Ffurnace-xray/lists"}