Sha256: c8b038b742b7089d68c337ab4760031d8d44d55d88376814380336a6ebbfc502

Contents?: true

Size: 520 Bytes

Versions: 15

Compression:

Stored size: 520 Bytes

Contents

# frozen_string_literal: true

require_dependency 'rails_mini_profiler/application_controller'

module RailsMiniProfiler
  class FlamegraphsController < ApplicationController
    layout 'rails_mini_profiler/flamegraph'

    before_action :set_flamegraph, only: %i[show]

    def show; end

    private

    def set_flamegraph
      @flamegraph = Flamegraph.find_by!(rmp_profiled_request_id: params[:id]).json_data
    end

    def configuration
      @configuration ||= RailsMiniProfiler.configuration
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
rails_mini_profiler-0.7.3 app/controllers/rails_mini_profiler/flamegraphs_controller.rb
rails_mini_profiler-0.7.2 app/controllers/rails_mini_profiler/flamegraphs_controller.rb
rails_mini_profiler-0.7.1 app/controllers/rails_mini_profiler/flamegraphs_controller.rb
rails_mini_profiler-0.7.0 app/controllers/rails_mini_profiler/flamegraphs_controller.rb
rails_mini_profiler-0.6.0 app/controllers/rails_mini_profiler/flamegraphs_controller.rb
rails_mini_profiler-0.5.0 app/controllers/rails_mini_profiler/flamegraphs_controller.rb
rails_mini_profiler-0 app/controllers/rails_mini_profiler/flamegraphs_controller.rb
rails_mini_profiler-0.4.0 app/controllers/rails_mini_profiler/flamegraphs_controller.rb
rails_mini_profiler-0.3.0 app/controllers/rails_mini_profiler/flamegraphs_controller.rb
rails_mini_profiler-0.2.1 app/controllers/rails_mini_profiler/flamegraphs_controller.rb
rails_mini_profiler-0.2.0 app/controllers/rails_mini_profiler/flamegraphs_controller.rb
rails_mini_profiler-0.1.3 app/controllers/rails_mini_profiler/flamegraphs_controller.rb
rails_mini_profiler-0.1.2 app/controllers/rails_mini_profiler/flamegraphs_controller.rb
rails_mini_profiler-0.1.1 app/controllers/rails_mini_profiler/flamegraphs_controller.rb
rails_mini_profiler-0.1.0 app/controllers/rails_mini_profiler/flamegraphs_controller.rb