rails_performance 0.0.1.17 → 0.0.1.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bfa41bb17c1227068e69d035806c82fd6e77148fdb954f57cb2fb7ee563abe4b
4
- data.tar.gz: 7472786930f4511599d044fa91179506462f1d317c1ede1eeea91de7d8565a66
3
+ metadata.gz: 39436989afe127c5268d13685c11384a13051b44efdc4dac1705e671c44a0147
4
+ data.tar.gz: 72988c7f770d87482c82d4699c3a2956acc4268addb22820a4093de20d1de9e8
5
5
  SHA512:
6
- metadata.gz: b102e1ca9171882e3299944a1331c86e9f265d7a0081c85e49ad6e1942ea2bd6329badc5bc7e3e11e54c7135fbf90d82c4b2e09f9721db75970a8741452183c0
7
- data.tar.gz: 53d3d43e65b0d9ee3f44d03d0ddcddd887c0e950e0b6b67f22d1c8387578b723aab55e1418a53dc58a12cf4b09f82da191fd1f14e1ae887d69faebaebbc2b713
6
+ metadata.gz: 9ed81e6a440c901d68b78bda24c00340a905ac18559499f5e58f341f82961b1e3c2cfda239fbd3c286fcf4b94a61675972db1fb64e696e805df99cc8b56e2577
7
+ data.tar.gz: faf3d55fb96cd5afa23c39ecc4dc0bcb76ec0caa84e9520229ead2660f8b7557bc4497b8ba5aee8c0e1342de5b3cd38ac272db70616f8ca041da1c61e0567bbc
data/README.md CHANGED
@@ -111,6 +111,7 @@ The idea of this gem grew from curriosity how many RPM my app receiving per day.
111
111
  - capture referal for 404 page?
112
112
  - SQL
113
113
  - Rendering
114
+ - scroll to the top details
114
115
 
115
116
  ## Contributing
116
117
 
@@ -26,9 +26,9 @@
26
26
  <td><%= link_to_path(e) %></td>
27
27
  <td><%= e[:format] %></td>
28
28
  <td><%= status_tag e[:status] %></td>
29
- <td><%= ms e[:duration] %></td>
30
- <td><%= ms e[:view_runtime] %></td>
31
- <td><%= ms e[:db_runtime] %></td>
29
+ <td class="nowrap"><%= ms e[:duration] %></td>
30
+ <td class="nowrap"><%= ms e[:view_runtime] %></td>
31
+ <td class="nowrap"><%= ms e[:db_runtime] %></td>
32
32
  </tr>
33
33
  <% end %>
34
34
  </tbody>
@@ -11,7 +11,8 @@
11
11
  <%= e["sql"] %>
12
12
  </td>
13
13
  <% elsif e["group"] == 'view' %>
14
- <td colspan="2">
14
+ <td>-</td>
15
+ <td>
15
16
  <%= e["message"] %>
16
17
  </td>
17
18
  <% end %>
@@ -24,9 +24,9 @@
24
24
  <td><%= e[:format] %></td>
25
25
  <td><%= link_to_path(e) %></td>
26
26
  <td><%= status_tag e[:status] %></td>
27
- <td><%= ms e[:duration] %></td>
28
- <td><%= ms e[:view_runtime] %></td>
29
- <td><%= ms e[:db_runtime] %></td>
27
+ <td class="nowrap"><%= ms e[:duration] %></td>
28
+ <td class="nowrap"><%= ms e[:view_runtime] %></td>
29
+ <td class="nowrap"><%= ms e[:db_runtime] %></td>
30
30
  </tr>
31
31
  <% end %>
32
32
  </tbody>
@@ -5,14 +5,13 @@ function hidePanel() {
5
5
  }
6
6
 
7
7
  function showPanel() {
8
+ $(".cd-panel__container").scrollTop(0);
8
9
  $(".panel-overlay").show();
9
10
  $('.cd-panel').addClass('cd-panel--is-visible');
10
11
  $('body').addClass('panel-visible');
11
-
12
12
  $('.cd-panel__content table').stupidtable();
13
13
  }
14
14
 
15
-
16
15
  $(function() {
17
16
  var panel = {};
18
17
  window.panel = panel;
@@ -27,9 +27,9 @@
27
27
  <td><%= e[:format] %></td>
28
28
  <td><%= link_to_path(e) %></td>
29
29
  <td><%= status_tag e[:status] %></td>
30
- <td><%= ms e[:duration] %></td>
31
- <td><%= ms e[:view_runtime] %></td>
32
- <td><%= ms e[:db_runtime] %></td>
30
+ <td class="nowrap"><%= ms e[:duration] %></td>
31
+ <td class="nowrap"><%= ms e[:view_runtime] %></td>
32
+ <td class="nowrap"><%= ms e[:db_runtime] %></td>
33
33
  <td>
34
34
  <% if e[:request_id].present? %>
35
35
  <%= link_to rails_performance.rails_performance_trace_path(id: e[:request_id]), remote: true do %>
@@ -28,12 +28,12 @@
28
28
  <td><%= link_to groups[0], rails_performance.rails_performance_summary_path({controller_eq: c, action_eq: a}), remote: true %></td>
29
29
  <td><%= link_to groups[1]&.upcase, rails_performance.rails_performance_summary_path({controller_eq: c, action_eq: a, format_eq: groups[1]}), remote: true %></td>
30
30
  <td><%= e[:count] %></td>
31
- <td><%= ms e[:duration_average] %></td>
32
- <td><%= ms e[:view_runtime_average] %></td>
33
- <td><%= ms e[:db_runtime_average] %></td>
34
- <td><%= ms e[:duration_slowest] %></td>
35
- <td><%= ms e[:view_runtime_slowest] %></td>
36
- <td><%= ms e[:db_runtime_slowest] %></td>
31
+ <td class="nowrap"><%= ms e[:duration_average] %></td>
32
+ <td class="nowrap"><%= ms e[:view_runtime_average] %></td>
33
+ <td class="nowrap"><%= ms e[:db_runtime_average] %></td>
34
+ <td class="nowrap"><%= ms e[:duration_slowest] %></td>
35
+ <td class="nowrap"><%= ms e[:view_runtime_slowest] %></td>
36
+ <td class="nowrap"><%= ms e[:db_runtime_slowest] %></td>
37
37
  </tr>
38
38
  <% end %>
39
39
  </tbody>
@@ -1,3 +1,3 @@
1
1
  module RailsPerformance
2
- VERSION = '0.0.1.17'
2
+ VERSION = '0.0.1.18'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_performance
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1.17
4
+ version: 0.0.1.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Igor Kasyanchuk