本文整理汇总了Java中cz.cuni.mff.odcleanstore.fusiontool.util.MemoryProfiler类的典型用法代码示例。如果您正苦于以下问题:Java MemoryProfiler类的具体用法?Java MemoryProfiler怎么用?Java MemoryProfiler使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
MemoryProfiler类属于cz.cuni.mff.odcleanstore.fusiontool.util包,在下文中一共展示了MemoryProfiler类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: printProfilingInformation
import cz.cuni.mff.odcleanstore.fusiontool.util.MemoryProfiler; //导入依赖的package包/类
private static void printProfilingInformation(Config config, LDFusionToolComponentFactory componentFactory, FusionRunner runner) {
if (config.isProfilingOn()) {
ProfilingTimeCounter<EnumFusionCounters> timeProfiler = runner.getTimeProfiler();
timeProfiler.addProfilingTimeCounter(componentFactory.getExecutorTimeProfiler());
MemoryProfiler memoryProfiler = componentFactory.getExecutorMemoryProfiler();
System.out.println("-- Profiling information --------");
System.out.println("Initialization time: " + timeProfiler.formatCounter(EnumFusionCounters.INITIALIZATION));
System.out.println("Reading metadata & sameAs links: " + timeProfiler.formatCounter(EnumFusionCounters.META_INITIALIZATION));
System.out.println("Data preparation time: " + timeProfiler.formatCounter(EnumFusionCounters.DATA_INITIALIZATION));
System.out.println("Quad loading time: " + timeProfiler.formatCounter(EnumFusionCounters.QUAD_LOADING));
System.out.println("Input filtering time: " + timeProfiler.formatCounter(EnumFusionCounters.INPUT_FILTERING));
System.out.println("Buffering time: " + timeProfiler.formatCounter(EnumFusionCounters.BUFFERING));
System.out.println("Conflict resolution time: " + timeProfiler.formatCounter(EnumFusionCounters.CONFLICT_RESOLUTION));
System.out.println("Output writing time: " + timeProfiler.formatCounter(EnumFusionCounters.OUTPUT_WRITING));
System.out.println("Maximum recorded total memory: " + MemoryProfiler.formatMemoryBytes(memoryProfiler.getMaxTotalMemory()));
System.out.println("Maximum recorded used memory: " + MemoryProfiler.formatMemoryBytes(memoryProfiler.getMaxUsedMemory()));
System.out.println("Minimum recorded free memory: " + MemoryProfiler.formatMemoryBytes(memoryProfiler.getMinFreeMemory()));
}
}
示例2: FusionToolDpuComponentFactory
import cz.cuni.mff.odcleanstore.fusiontool.util.MemoryProfiler; //导入依赖的package包/类
/**
* Creates a new instance.
* @param config configuration
* @param executionContext execution context
* @param rdfInputs RDF input data
* @param sameAsInput input owl:sameAs links
* @param metadataInput input metadata
* @param rdfOutput RDF output data
*/
public FusionToolDpuComponentFactory(
ConfigContainer config, DPUContext executionContext, List<? extends RDFDataUnit> rdfInputs,
RDFDataUnit sameAsInput, RDFDataUnit metadataInput, WritableRDFDataUnit rdfOutput) {
this.config = config;
this.executionContext = executionContext;
this.rdfInputs = rdfInputs;
this.sameAsInput = sameAsInput;
this.metadataInput = metadataInput;
this.rdfOutput = rdfOutput;
this.executorTimeProfiler = ProfilingTimeCounter.createInstance(EnumFusionCounters.class, config.isProfilingOn());
this.executorMemoryProfiler = MemoryProfiler.createInstance(config.isProfilingOn());
}
示例3: LDFusionToolExecutor
import cz.cuni.mff.odcleanstore.fusiontool.util.MemoryProfiler; //导入依赖的package包/类
/**
* @param hasVirtuosoSource indicates whether the {@link cz.cuni.mff.odcleanstore.fusiontool.loaders.InputLoader}
* given to {@code fuse()} may contain a source of type
* {@link cz.cuni.mff.odcleanstore.fusiontool.config.EnumDataSourceType#VIRTUOSO} (need for Virtuoso bug circumvention).
* @param maxOutputTriples maximum number of triples to be processed; null means unlimited
* @param timeProfiler time profiler
* @param memoryProfiler memory profiler
*/
public LDFusionToolExecutor(
boolean hasVirtuosoSource,
Long maxOutputTriples,
ResourceDescriptionFilter resourceDescriptionFilter,
ProfilingTimeCounter<EnumFusionCounters> timeProfiler,
MemoryProfiler memoryProfiler) {
this.hasVirtuosoSource = hasVirtuosoSource;
this.maxOutputTriples = maxOutputTriples;
this.resourceDescriptionFilter = resourceDescriptionFilter;
this.timeProfiler = timeProfiler;
this.memoryProfiler = memoryProfiler;
}
示例4: getLDFusionToolExecutor
import cz.cuni.mff.odcleanstore.fusiontool.util.MemoryProfiler; //导入依赖的package包/类
private LDFusionToolExecutor getLDFusionToolExecutor(long maxOutputTriples, boolean hasVirtuosoSource) {
return new LDFusionToolExecutor(
hasVirtuosoSource,
maxOutputTriples,
new NoOpFilter(),
ProfilingTimeCounter.createInstance(EnumFusionCounters.class, false),
MemoryProfiler.createInstance(false));
}