{"id":27255541,"url":"https://github.com/bric3/fireplace","last_synced_at":"2026-01-12T14:32:39.867Z","repository":{"id":37207437,"uuid":"444023183","full_name":"bric3/fireplace","owner":"bric3","description":"Flamegraph (Iciclegraph) swing component","archived":false,"fork":false,"pushed_at":"2025-04-08T10:33:06.000Z","size":18899,"stargazers_count":18,"open_issues_count":19,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-08T10:34:06.934Z","etag":null,"topics":["flamegraph","iciclegraph","java","jfr","swing"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bric3.png","metadata":{"files":{"readme":"README.adoc","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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-01-03T10:37:54.000Z","updated_at":"2025-03-28T05:31:59.000Z","dependencies_parsed_at":"2023-02-15T03:01:04.605Z","dependency_job_id":"18b7e20e-5712-4c55-8568-b88fe509110d","html_url":"https://github.com/bric3/fireplace","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bric3%2Ffireplace","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bric3%2Ffireplace/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bric3%2Ffireplace/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bric3%2Ffireplace/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bric3","download_url":"https://codeload.github.com/bric3/fireplace/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248328314,"owners_count":21085295,"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":["flamegraph","iciclegraph","java","jfr","swing"],"created_at":"2025-04-11T02:20:04.547Z","updated_at":"2026-01-12T14:32:39.846Z","avatar_url":"https://github.com/bric3.png","language":"Java","readme":"image:https://github.com/bric3/fireplace/actions/workflows/build.yml/badge.svg[Java CI with Gradle,link=https://github.com/bric3/fireplace/actions/workflows/build.yml]\n// image:https://snyk.io/test/github/bric3/fireplace/badge.svg?targetFile=build.gradle[\"Known Vulnerabilities\", link=\"https://snyk.io/test/github/bric3/fireplace?targetFile=build.gradle.kts\"]\nimage:https://img.shields.io/maven-central/v/io.github.bric3.fireplace/fireplace-swing.svg[\"Maven Central\", link=\"https://search.maven.org/artifact/io.github.bric3.fireplace/fireplace-swing\"]\nimage:https://img.shields.io/github/release/bric3/fireplace.svg?label=Github%20Release[Github Release,link=https://github.com/bric3/fireplace/releases/latest]\nimage:https://img.shields.io/github/license/bric3/fireplace.svg[License]\n\n== Flamegraph / Iciclegraph Java Swing component\n\n++++\n\u003cpicture\u003e\n  \u003csource media=\"(prefers-color-scheme: dark)\" srcset=\".github/images/fireplace-dark.png\"\u003e\n  \u003cimg alt=\"Shows a flamegraph in either light or dark mode\" src=\".github/images/fireplace-light.png\"\u003e\n\u003c/picture\u003e\n++++\n\nThis flamegraph component is known to be used in https://github.com/openjdk/jmc[JDK Mission Control 9.0] and in the https://docs.datadoghq.com/developers/ide_integrations/idea/[Datadog plugin for IntelliJ].\n\n\n== Usage\n\n.Example usage\n[source,java]\n----\nvar flamegraphView = new FlamegraphView\u003cNode\u003e();\n\nflamegraphView.setFrameRender(\n        new DefaultFrameRenderer\u003c\u003e(\n                FrameTextsProvider.of(\n                        frame -\u003e frame.isRoot() ? \"root\" : frame.actualNode.getFrame().getHumanReadableShortString(),\n                        frame -\u003e frame.isRoot() ? \"\" : FormatToolkit.getHumanReadable(frame.actualNode.getFrame().getMethod(), false, false, false, false, true, false),\n                        frame -\u003e frame.isRoot() ? \"\" : frame.actualNode.getFrame().getMethod().getMethodName()\n                ),\n                new DimmingFrameColorProvider\u003c\u003e(defaultFrameColorMode.colorMapperUsing(ColorMapper.ofObjectHashUsing(defaultColorPalette.colors()))),\n                FrameFontProvider.defaultFontProvider()\n        )\n);\n\njpanel.add(flamegraphView.component);\n\n\n// later, fill in the data\nvar listOfFrames = FrameBox.flattenAndCalculateCoordinate(new ArrayList\u003cNode\u003e(), ...);\nflamegraphView.setModel(\n        new FrameModel\u003c\u003e(\n                \"title, events (CPU, Locks)\", // used in the root \"frame\"\n                (a, b) -\u003e Objects.equals(a, b), // used to identify equal frames\n                listOfFrames\n        )\n);\n----\n\nEarlier builds used to set up the view using `setRenderConfiguration`, this is deprecated for removal and code should\nbe migrated to use `setFrameRender` instead.\n\n== Configuration Options\n\n[cols=\"1,2,1\"]\n|===\n|Method |Description |Default\n\n|`setMode(Mode)`\n|Display mode: `FLAMEGRAPH` (root at bottom) or `ICICLEGRAPH` (root at top)\n|`ICICLEGRAPH`\n\n|`setFrameClickAction(FrameClickAction)`\n|Click behavior: `FOCUS_FRAME` (double-click zooms) or `EXPAND_FRAME` (single-click expands)\n|`FOCUS_FRAME`\n\n|`setShowMinimap(boolean)`\n|Show/hide the navigation minimap\n|`true`\n\n|`setShowHoveredSiblings(boolean)`\n|Highlight identical frames elsewhere in the graph on hover\n|`true`\n\n|`setTooltipTextFunction(BiFunction)`\n|Customize tooltip text for frames\n|—\n\n|`setPopupConsumer(BiConsumer)`\n|Handle right-click context menu on frames\n|—\n\n|`setSelectedFrameConsumer(BiConsumer)`\n|Callback when a frame is selected (single-click)\n|—\n\n|`setHoverListener(HoverListener)`\n|Listen for frame hover events\n|—\n\n|`highlightFrames(Set, String)`\n|Highlight frames matching a search\n|—\n|===\n\n== Exporting to Image\n\nUse `FlamegraphImage` to render a flamegraph to a static image (e.g., for export or reports).\n\n== Misc\n\nSnapshot versions will be delivered at\n\n\u003e Maven Central Portal: https://central.sonatype.com/repository/maven-snapshots/[https://s01.oss.sonatype.org/content/repositories/*snapshots*/io/github/bric3/fireplace]\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbric3%2Ffireplace","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbric3%2Ffireplace","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbric3%2Ffireplace/lists"}