org.gridkit.jvmtool.hflame.GenericTerminatingStackElement Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sjk-hflame Show documentation
Show all versions of sjk-hflame Show documentation
HTML based flame graph visualizer
package org.gridkit.jvmtool.hflame;
import java.util.Collections;
import java.util.LinkedHashMap;
import java.util.Map;
import org.gridkit.jvmtool.stacktrace.GenericStackElement;
public class GenericTerminatingStackElement implements GenericStackElement {
private final String caption;
private final Map props;
public GenericTerminatingStackElement(String caption) {
this.caption = caption;
this.props = Collections.emptyMap();
}
public GenericTerminatingStackElement(String caption, Map props) {
this.caption = caption;
this.props = Collections.unmodifiableMap(new LinkedHashMap(props));
}
public Map props() {
return props;
}
@Override
public String toString() {
return caption;
}
}