has '_traced_refs' => (is => 'ro', lazy => 1, default => sub { {} });
has '_traced_names' => (is => 'ro', lazy => 1, default => sub { {} });
+sub trace_refs {
+ my ($class, $name, $refs) = @_;
+ my $self = $class->new({ root_name => $name });
+ $self->visit($refs);
+ return $self->traced_ref_map;
+}
+
before visit_ref => sub {
my ($self, $data) = @_;