shared_reset_diagnostics: Reset diagnostic counters for a shared vector

View source: R/altrep.R

shared_reset_diagnosticsR Documentation

Reset diagnostic counters for a shared vector

Description

Reset diagnostic counters for a shared vector

Usage

shared_reset_diagnostics(x)

Arguments

x

A shard ALTREP vector

Value

x (invisibly)

Examples


seg <- segment_create(400)
segment_write(seg, 1:100, offset = 0)
x <- shared_vector(seg, "integer", length = 100)

sum(x)
shared_diagnostics(x)$dataptr_calls

shared_reset_diagnostics(x)
shared_diagnostics(x)$dataptr_calls


shard documentation built on April 3, 2026, 9:08 a.m.