# fireplace
**Repository Path**: mirrors_jfree/fireplace
## Basic Information
- **Project Name**: fireplace
- **Description**: No description available
- **Primary Language**: Unknown
- **License**: MPL-2.0
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2022-03-16
- **Last Updated**: 2026-01-04
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## 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]
// 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"]
image: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"]
== Flamegraph / Iciclegraph Java Swing component
++++
++++
== Usage
.Example usage
[source,java]
----
var fg = new FlamegraphView();
flamegraphView.setRenderConfiguration(
FrameTextsProvider.of(
frame -> frame.isRoot() ? "root" : frame.actualNode.getFrame().getHumanReadableShortString(),
frame -> frame.isRoot() ? "" : FormatToolkit.getHumanReadable(frame.actualNode.getFrame().getMethod(), false, false, false, false, true, false),
frame -> frame.isRoot() ? "" : frame.actualNode.getFrame().getMethod().getMethodName()
),
new DimmingFrameColorProvider<>(defaultFrameColorMode.colorMapperUsing(ColorMapper.ofObjectHashUsing(defaultColorPalette.colors()))),
FrameFontProvider.defaultFontProvider()
);
jpanel.add(flamegraphView.component);
// later, fill in the data
var listOfFrames = FrameBox.flattenAndCalculateCoordinate(new ArrayList(), ...);
flamegraphView.setModel(
new FrameModel<>(
"title, events (CPU, Locks)", // used in the root "frame"
(a, b) -> Objects.equals(a, b), // used to identify equal frames
listOfFrames
)
);
----
== Misc
Snapshot versions will be delivered at
> https://s01.oss.sonatype.org/content/repositories/snapshots/io/github/bric3/fireplace[https://s01.oss.sonatype.org/content/repositories/*snapshots*/io/github/bric3/fireplace]