runtime_profiler 0.3.4 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4c567a2661f9eec0b394b9751be7e66994e12eea070333f1123ca7c8178e3897
4
- data.tar.gz: 6eaf3618331b9f5a2c9ea5c657cb61aeb67b391456c4a82f74937a800b78afe7
3
+ metadata.gz: a5aa2b360eef9161de1191784bfa70dfada83843bbb1f89988c328ac09983067
4
+ data.tar.gz: b68c2dc4b44c763c46a2cf15e5bb622d07d3fef6414708358617b98f344d4b93
5
5
  SHA512:
6
- metadata.gz: 1f5466a9848de8f4e8dbf80e57d48c1dd146f4867ad7b31f8bae7a88a441b562d75c8efbd54c33ced2efc125b1057bdafa571ff94d3c7c5015ce7ae2e73c5847
7
- data.tar.gz: f53a00037808f40793cc28d523577f405581ed5588b29146c49daabe02151a7ad34b5c205aede70c7c93bc98e8858de08c740a9b675bac3ef22e9c67475dc438
6
+ metadata.gz: d04b5aad1bac8c08cf6279e2b801e9f24cf13f8e0ef7062b4f31a70ad5e4347410f1754d0fe1a32f283bb476d74b2e258449d8ca76a6fcf34479c5fdc78dcc8e
7
+ data.tar.gz: e6887564468ed31891f0a3c418fa316f831686342c6caf3c1f579fac2dd7494d331df2dd136441381c944838b56025ccbe9d3fcab90f4abf2072a78f46d290c9
data/README.md CHANGED
@@ -15,6 +15,7 @@ Check which part of your Rails application is causing slow response time. **runt
15
15
  - [Examples](#examples)
16
16
  - [Viewing Profiling Result](#viewing-profiling-result)
17
17
  - [view Options](#view-options)
18
+ - [Screenshot](#screenshot)
18
19
  - [Configurations](#configurations)
19
20
  - [Development](#development)
20
21
  - [Contributing](#contributing)
@@ -137,6 +138,12 @@ $ bundle exec runtime_profiler view --help
137
138
  ROUNDING is integer value. Used in rounding runtimes. Default is 4.
138
139
  ```
139
140
 
141
+ ### Screenshot
142
+
143
+ <p align="center">
144
+ <img src="rp_view_only_methods_full_details.png">
145
+ </p>
146
+
140
147
  ### Configurations
141
148
 
142
149
  All the configurable variables and their defaults are listed below. There is no one correct place where to put these configurations. It can be inside `config/initializers` folder of your Rails application. Or if you are using test to profile, it can be in the last part of `spec/spec_helper.rb`.
@@ -26,6 +26,10 @@ module RuntimeProfiler
26
26
  end
27
27
  end
28
28
 
29
+ config_accessor :excepted_methods do
30
+ {}
31
+ end
32
+
29
33
  class << self
30
34
  def configure
31
35
  begin
@@ -39,7 +39,7 @@ module RuntimeProfiler
39
39
 
40
40
  def prepare_methods_to_instrument
41
41
  instrumented_constants.flatten
42
- .each { |constant| MethodMeter.observe(constant) }
42
+ .each { |constant| MethodMeter.observe(constant, RuntimeProfiler.excepted_methods) }
43
43
  end
44
44
 
45
45
  def save_instrumentation_data
@@ -1,3 +1,3 @@
1
1
  module RuntimeProfiler
2
- VERSION = '0.3.4'.freeze
2
+ VERSION = '0.4.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: runtime_profiler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.4
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wilfrido T. Nuqui Jr.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-12-19 00:00:00.000000000 Z
11
+ date: 2021-01-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -205,6 +205,7 @@ files:
205
205
  - lib/runtime_profiler/profiler.rb
206
206
  - lib/runtime_profiler/text_report.rb
207
207
  - lib/runtime_profiler/version.rb
208
+ - rp_view_only_methods_full_details.png
208
209
  - runtime_profiler.gemspec
209
210
  homepage: http://www.github.com/wnuqui/runtime_profiler
210
211
  licenses: