Sha256: d31de15f2792a34698dec043de1245c100d8ce8d1cd5c3f672567f1b5321fa21
Contents?: true
Size: 585 Bytes
Versions: 30
Compression:
Stored size: 585 Bytes
Contents
# frozen_string_literal: true require 'appmap' require 'json' tracer = AppMap.tracing.trace at_exit do AppMap.tracing.delete(tracer) events = [].tap do |event_list| event_list << tracer.next_event.to_h while tracer.event? end metadata = AppMap.detect_metadata metadata[:recorder] = { name: 'record_process', type: 'process' } appmap = { 'version' => AppMap::APPMAP_FORMAT_VERSION, 'metadata' => metadata, 'classMap' => AppMap.class_map(tracer.event_methods), 'events' => events } AppMap::Util.write_appmap('appmap.json', appmap) end
Version data entries
30 entries across 30 versions & 1 rubygems