use of org.neo4j.memory.ScopedMemoryTracker in project neo4j by neo4j.
the class MuninnPageCacheTest method createFixture.
@Override
protected Fixture<MuninnPageCache> createFixture() {
ConfigurableIOBufferFactory bufferFactory = new ConfigurableIOBufferFactory(Config.defaults(pagecache_buffered_flush_enabled, true), new ScopedMemoryTracker(INSTANCE));
fixture = new MuninnPageCacheFixture();
fixture.withBufferFactory(bufferFactory);
return fixture;
}
use of org.neo4j.memory.ScopedMemoryTracker in project neo4j by neo4j.
the class LongProbeTable method createLongProbeTable.
public static <V extends Measurable> LongProbeTable<V> createLongProbeTable(MemoryTracker memoryTracker) {
MemoryTracker scopedMemoryTracker = memoryTracker.getScopedMemoryTracker();
scopedMemoryTracker.allocateHeap(SHALLOW_SIZE + SCOPED_MEMORY_TRACKER_SHALLOW_SIZE);
return new LongProbeTable<>(scopedMemoryTracker);
}
Aggregations