Sha256: 46fe65e1b4511ae1479fdc2ee0a53331356c0a200a858e8117110fa4c74602bc

Contents?: true

Size: 1.23 KB

Versions: 4

Compression:

Stored size: 1.23 KB

Contents

%h4 Memory summary
- if @instance.big_files.any?
  %p
    There are
    %i.text-danger
      = @instance.big_files.size
    file that you should check.
  %table.table.border.border-secondary.border-top-0
    %thead.bg-secondary.text-white
      %tr.d-flex
        %th.col-10 File
        %th.col-2 Memory

    %tbody
      - @instance.big_files.each do |file, size|
        %tr.d-flex
          %td.col-10
            %span.text-primary
              = file
          %td.col-2= number_to_human_size size

- else
  %p.text-success Congratulations! all your files looks good!

- if @instance.big_classes.any?
  %p
    There are
    %i.text-danger
      = @instance.big_classes.size
    classes that you should check.

  %table.table.border.border-secondary.border-top-0
    %thead.bg-secondary.text-white
      %tr.d-flex
        %th.col-10 Class
        %th.col-2 Average memory

    %tbody
      - @instance.big_classes.each_pair do |klass, hash|
        %tr.d-flex
          %td.col-10
            %span.text-danger
              = klass
          %td.col-2= number_to_human_size hash[:average]
- else
  %p.text-success There is no particular class that you should care about.
= link_to "Check all objects allocated", objects_group_instance_path(@instance)

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
better_rails_debugger-0.2.1 app/views/better_rails_debugger/group_instances/_memory_summary.html.haml
better_rails_debugger-0.2.0 app/views/better_rails_debugger/group_instances/_memory_summary.html.haml
better_rails_debugger-0.1.1 app/views/better_rails_debugger/group_instances/_memory_summary.html.haml
better_rails_debugger-0.0.4 app/views/better_rails_debugger/group_instances/_memory_summary.html.haml