org.adoptopenjdk.jitwatch.ui.report.elidedlock.ElidedLockRowBean Maven / Gradle / Ivy
/*
* Copyright (c) 2017 Chris Newland.
* Licensed under https://github.com/AdoptOpenJDK/jitwatch/blob/master/LICENSE-BSD
* Instructions: https://github.com/AdoptOpenJDK/jitwatch/wiki
*/
package org.adoptopenjdk.jitwatch.ui.report.elidedlock;
import static org.adoptopenjdk.jitwatch.core.JITWatchConstants.S_EMPTY;
import org.adoptopenjdk.jitwatch.model.Compilation;
import org.adoptopenjdk.jitwatch.report.Report;
import org.adoptopenjdk.jitwatch.report.ReportType;
import org.adoptopenjdk.jitwatch.ui.report.AbstractReportRowBean;
public class ElidedLockRowBean extends AbstractReportRowBean
{
public ElidedLockRowBean(Report report)
{
super(report);
}
public String getCompilation()
{
Compilation compilation = report.getCaller().getCompilation(report.getCompilationIndex());
return compilation != null ? compilation.getSignature() : S_EMPTY;
}
public String getMetaClass()
{
return report.getCaller().getMetaClass().getFullyQualifiedName();
}
public String getMember()
{
return report.getCaller().toStringUnqualifiedMethodName(false, false);
}
public String getKind()
{
return (report.getType() == ReportType.ELIMINATED_ALLOCATION_DIRECT) ? "Direct" : "Inline";
}
public String getElisionKind()
{
String kind = null;
Object metaData = report.getMetaData();
if (metaData instanceof String && metaData != null)
{
kind = (String)metaData;
}
else
{
kind = "Unknown";
}
return kind;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy