当前位置: 首页>>代码示例>>Java>>正文


Java MemoryProfiler类代码示例

本文整理汇总了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()));
    }
}
 
开发者ID:mifeet,项目名称:LD-FusionTool,代码行数:21,代码来源:LDFusionToolApplication.java

示例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());
}
 
开发者ID:UnifiedViews,项目名称:Plugins,代码行数:22,代码来源:FusionToolDpuComponentFactory.java

示例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;
}
 
开发者ID:mifeet,项目名称:LD-FusionTool,代码行数:21,代码来源:LDFusionToolExecutor.java

示例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));
}
 
开发者ID:mifeet,项目名称:LD-FusionTool,代码行数:9,代码来源:LDFusionToolExecutorTest.java


注:本文中的cz.cuni.mff.odcleanstore.fusiontool.util.MemoryProfiler类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。