Sha256: 8042127ee4dc05615aceb2a8a75430f9ff14bc4fa7612463ea48956e2f3d3fde

Contents?: true

Size: 551 Bytes

Versions: 3

Compression:

Stored size: 551 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 HelloWorldApp
  FULL_PATH = __FILE__

  attr_accessor :allocating_lines

  def initialize
    @allocating_lines = []
  end

  def call(env)
    a = "Ahhhhhhhhhhhhhhhhhhhhh"; @allocating_lines << __LINE__
    #y = YAML.dump(["one string", "two string"]) # 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/hello_world_app.rb
rack-allocation_stats-0.1.1 ./spec/hello_world_app.rb
rack-allocation_stats-0.1.0 ./spec/hello_world_app.rb