All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.adoptopenjdk.jitwatch.ui.report.suggestion.SuggestionRowBean Maven / Gradle / Ivy

/*
 * Copyright (c) 2013-2016 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.suggestion;

import org.adoptopenjdk.jitwatch.report.Report;
import org.adoptopenjdk.jitwatch.ui.report.AbstractReportRowBean;

public class SuggestionRowBean extends AbstractReportRowBean
{
	public SuggestionRowBean(Report report)
	{
		super(report);
	}

	public int getScore()
	{
		return report.getScore();
	}

	public String getType()
	{
		switch (report.getType())
		{
		case BRANCH:
			return "Branch";
		case INLINE_FAILURE:
			return "Inlining";
		case CODE_CACHE:
			return "Code Cache";
		case ELIMINATED_ALLOCATION_DIRECT:
		case ELIMINATED_ALLOCATION_INLINE:
			return "Eliminated Allocation";
		default:
			return "Unknown";
		}
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy