{"id":18909118,"url":"https://github.com/jruby/jruby-visualizer","last_synced_at":"2025-04-15T06:13:31.840Z","repository":{"id":9467342,"uuid":"11351054","full_name":"jruby/jruby-visualizer","owner":"jruby","description":"Visualize JRuby's runtime in action","archived":false,"fork":false,"pushed_at":"2019-07-15T16:23:01.000Z","size":210,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-28T16:51:19.828Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://www.jruby.org/","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jruby.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-07-11T19:31:34.000Z","updated_at":"2024-09-04T09:05:15.000Z","dependencies_parsed_at":"2022-08-20T23:10:57.516Z","dependency_job_id":null,"html_url":"https://github.com/jruby/jruby-visualizer","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/jruby%2Fjruby-visualizer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jruby%2Fjruby-visualizer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jruby%2Fjruby-visualizer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jruby%2Fjruby-visualizer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jruby","download_url":"https://codeload.github.com/jruby/jruby-visualizer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248886334,"owners_count":21177645,"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":[],"created_at":"2024-11-08T09:31:04.664Z","updated_at":"2025-04-15T06:13:31.820Z","avatar_url":"https://github.com/jruby.png","language":"Ruby","readme":"# jruby-visualizer\nThe ```jruby_visualizer``` gem takes as input Ruby code and visualizes artifacts of JRuby's compiler/interpreter tool chain.\nThis includes\n * the Abstract Syntax Tree (AST)\n * the Intermediate Representation (IR)\n * the execution of compiler passes on IR\n * a visualization for the Control Flow Graphs (CFGs) on JRuby Scopes\n\n# Installation\nYou can install this visualizer as gem into your jruby environment:\n\n1. Clone the repository ```$ git clone https://github.com/jruby/jruby-visualizer.git```\n2. Build the gem ```$ rake build```\n3. Install the gem ```$ jruby -S gem install --local pkg/jruby_visualizer-0.1.gem```\n\n# Usage\nEither\n\n1. call into the library\n\n```\n$ ./lib/jruby_visualizer.rb                             \nRuntimeError: No ruby input for the JRuby Visualizer\n  Usage: \n    ./lib/jruby_visualizer.rb \"def foo; 42; end; foo\"\n  or\n    ./lib/jruby_visualizer.rb foo.rb\n  (root) at ./lib/jruby_visualizer.rb:15\n```\nThis is also possible with the following command, to visualize ```foo.rb```:\n\n```\n$ jruby -Ilib ./bin/jruby_visualizer foo.rb\n```\n\n2. Execute the installed binary\n\n```\n$ jruby_visualizer foo.rb\n```\n\n3. Use the visualizer as gem in your jruby code\n\n```ruby\n#!/usr/bin/env jruby\n\nrequire 'jruby_visualizer'\n\nJRubyVisualizer::visualize('def bar; puts \"spam HAM\"; end; bar')\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjruby%2Fjruby-visualizer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjruby%2Fjruby-visualizer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjruby%2Fjruby-visualizer/lists"}