Sha256: 8a0d669d50be25c0e96b7574d85b40bdbded26c38fa102d40231491089afc654

Contents?: true

Size: 540 Bytes

Versions: 10

Compression:

Stored size: 540 Bytes

Contents

# frozen_string_literal: true

# Run with `ruby profiler/logs.rb > /dev/null` and then you can read the
# results using `open /tmp/lenjador.html`

require 'bundler/setup'
Bundler.require
logger = Lenjador.build('test_service', stdout: {level: 'info', json: true})

require 'ruby-prof'
RubyProf.start

100_000.times do
  logger.info 'hello there', a: 'asdf', b: 'eadsfasdf', c: {hello: 'there'}
end

result = RubyProf.stop
printer = RubyProf::GraphHtmlPrinter.new(result)
File.open('/tmp/lenjador.html', 'w+') { |file| printer.print(file) }

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
lenjador-2.3.1 profiler/logs.rb
lenjador-2.3.0 profiler/logs.rb
lenjador-2.2.2 profiler/logs.rb
lenjador-2.2.1 profiler/logs.rb
lenjador-2.2.0 profiler/logs.rb
lenjador-2.1.0 profiler/logs.rb
lenjador-2.0.1 profiler/logs.rb
lenjador-2.0.0 profiler/logs.rb
lenjador-1.4.0 profiler/logs.rb
lenjador-1.3.0 profiler/logs.rb