test-prof 0.4.3 → 0.4.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/test_prof/ruby_prof.rb +12 -1
- data/lib/test_prof/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a5ae30161f2936c522b10abfce40dc5ac30f4c10
|
4
|
+
data.tar.gz: abf267835eea405461d4605121a4bf750f6fcc6d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: edbe901d14cd2502b19abb40252a2da1d0dfab56462d65984dbf7aab5eabb1b24d2e4432801b6a795e91b99bcd67f95ecb0810f7381121196b5fb00f96c0ef56
|
7
|
+
data.tar.gz: c27f7bc5afbc9d828163b0de96e07362fcc6414dbf03c8069e3c493feb588a720dfff020614a5d7bebad064a0782129944ce77fff990479ba3d031f95b7802f7
|
data/lib/test_prof/ruby_prof.rb
CHANGED
@@ -46,6 +46,16 @@ module TestProf
|
|
46
46
|
'call_tree' => 'CallTreePrinter'
|
47
47
|
}.freeze
|
48
48
|
|
49
|
+
# Mapping from printer to report file extension
|
50
|
+
# NOTE: txt is not included and considered default
|
51
|
+
PRINTER_EXTENSTION = {
|
52
|
+
'graph_html' => 'html',
|
53
|
+
'dot' => 'dot',
|
54
|
+
'.' => 'dot',
|
55
|
+
'call_stack' => 'html',
|
56
|
+
'call_tree' => 'dat'
|
57
|
+
}.freeze
|
58
|
+
|
49
59
|
attr_accessor :printer, :mode, :min_percent,
|
50
60
|
:include_threads, :eliminate_methods
|
51
61
|
|
@@ -111,7 +121,8 @@ module TestProf
|
|
111
121
|
|
112
122
|
def build_path(name, printer)
|
113
123
|
TestProf.artifact_path(
|
114
|
-
"ruby-prof-report-#{printer}-#{config.mode}-#{name}
|
124
|
+
"ruby-prof-report-#{printer}-#{config.mode}-#{name}" \
|
125
|
+
".#{RubyProf::Configuration::PRINTER_EXTENSTION.fetch(printer, 'txt')}"
|
115
126
|
)
|
116
127
|
end
|
117
128
|
|
data/lib/test_prof/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: test-prof
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vladimir Dementyev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-11-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|