Sha256: dc4ffd7f7c2b214aa881f14a66dc45d1d2dba113caf75d3881395e18f6866ead

Contents?: true

Size: 511 Bytes

Versions: 3

Compression:

Stored size: 511 Bytes

Contents

# Copyright 2013 Google Inc. All Rights Reserved.
# Licensed under the Apache License, Version 2.0, found in the LICENSE file.

require "rack"
require "yaml"

class YamlApp
  FULL_PATH = __FILE__

  attr_accessor :allocating_lines

  def initialize
    @allocating_lines = []
  end

  def call(env)
    y = YAML.dump(["one string", "two string"]); @allocating_lines << __LINE__ # lots of objects not from here
    @allocating_lines << __LINE__; [200, {"Content-Type" => "text/html"}, ["Hello Rack!"]]
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rack-allocation_stats-0.1.2 spec/yaml_app.rb
rack-allocation_stats-0.1.1 ./spec/yaml_app.rb
rack-allocation_stats-0.1.0 ./spec/yaml_app.rb