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

org.adoptopenjdk.jitwatch.model.SplitLog Maven / Gradle / Ivy

Go to download

A Maven plugin that scans the project artifact and its dependencies for methods that cannot be inlined by the JIT compiler. It uses the JarScan utility from the JITWatch project to do that. See https://github.com/AdoptOpenJDK/jitwatch .

The newest version!
/*
 * Copyright (c) 2013-2015 Chris Newland.
 * Licensed under https://github.com/AdoptOpenJDK/jitwatch/blob/master/LICENSE-BSD
 * Instructions: https://github.com/AdoptOpenJDK/jitwatch/wiki
 */
package org.adoptopenjdk.jitwatch.model;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

public class SplitLog
{
	private List headerLines = new ArrayList<>();
	private List classLoaderLines = new ArrayList<>();
	private List logCompilationLines = new ArrayList<>();
	private List assemblyLines = new ArrayList<>();
	
	public void clear()
	{
		headerLines.clear();
		classLoaderLines.clear();
		logCompilationLines.clear();
		assemblyLines.clear();
	}
	
	public void addHeaderLine(NumberedLine line)
	{
		headerLines.add(line);
	}
	
	public void addClassLoaderLine(NumberedLine line)
	{
		classLoaderLines.add(line);
	}
	
	public void addLogCompilationLine(NumberedLine line)
	{
		logCompilationLines.add(line);
	}
	
	public void addAssemblyLine(NumberedLine line)
	{
		assemblyLines.add(line);
	}

	public List getHeaderLines()
	{
		return Collections.unmodifiableList(headerLines);
	}
	
	public List getClassLoaderLines()
	{
		return Collections.unmodifiableList(classLoaderLines);
	}
	
	public List getLogCompilationLines()
	{
		return Collections.unmodifiableList(logCompilationLines);
	}
	
	public List getAssemblyLines()
	{
		return Collections.unmodifiableList(assemblyLines);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy