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

Version Path
appmap-1.0.1 lib/appmap/record.rb
appmap-1.0.0 lib/appmap/record.rb
appmap-0.103.0 lib/appmap/record.rb
appmap-0.102.2 lib/appmap/record.rb
appmap-0.102.1 lib/appmap/record.rb
appmap-0.102.0 lib/appmap/record.rb
appmap-0.101.0 lib/appmap/record.rb
appmap-0.100.0 lib/appmap/record.rb
appmap-0.99.4 lib/appmap/record.rb
appmap-0.99.2 lib/appmap/record.rb
appmap-0.99.1 lib/appmap/record.rb
appmap-0.99.0 lib/appmap/record.rb
appmap-0.98.1 lib/appmap/record.rb
appmap-0.98.0 lib/appmap/record.rb
appmap-0.97.0 lib/appmap/record.rb
appmap-0.96.0 lib/appmap/record.rb
appmap-0.95.2 lib/appmap/record.rb
appmap-0.95.1 lib/appmap/record.rb
appmap-0.95.0 lib/appmap/record.rb
appmap-0.94.1 lib/appmap/record.rb