use of org.neo4j.io.pagecache.tracing.cursor.PageCursorTracer in project neo4j by neo4j.
the class RelationshipSelectionsIT method assertTwoCursor.
private void assertTwoCursor(CursorContext cursorContext) {
PageCursorTracer cursorTracer = cursorContext.getCursorTracer();
assertThat(cursorTracer.hits()).isEqualTo(2);
assertThat(cursorTracer.pins()).isEqualTo(2);
assertThat(cursorTracer.unpins()).isEqualTo(2);
}
use of org.neo4j.io.pagecache.tracing.cursor.PageCursorTracer in project neo4j by neo4j.
the class OffloadStoreTracingTest method tracePageCacheAccessOnFree.
@Test
void tracePageCacheAccessOnFree() throws IOException {
PageCursorTracer cursorTracer = cursorContext.getCursorTracer();
cursorTracer.reportEvents();
assertZeroCursor();
offloadStore.free(1, 1, 1, cursorContext);
assertThat(cursorTracer.hits()).isEqualTo(0);
assertThat(cursorTracer.faults()).isEqualTo(1);
assertThat(cursorTracer.pins()).isEqualTo(1);
assertThat(cursorTracer.unpins()).isEqualTo(1);
}
Aggregations