stackprof-remote 0.0.6 → 0.1.0
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 +4 -4
- data/VERSION +1 -1
- data/lib/stackprof/cli.rb +12 -1
- data/stackprof-remote.gemspec +3 -3
- 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: 3382861bf10d0006b71fa1e2f4d319a1926f648a
|
4
|
+
data.tar.gz: 5d0e7e54766ef4544f7c349192856ae3e81ab3c0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cd3481fb6a2b96e2d8b0e87df6e36ef6f2b22ab0555772bb35b6ce0e17128c2f3b77d673e6d5176b109cb50d84d341a982b14bccc135381436d9acdf02404299
|
7
|
+
data.tar.gz: 64e6ad30e7045a6f621fb454f1ddab1e3bd10bca5b3a69b0d0c41057cb26cc705db71fbd8ccc91328ed4db81480d8f6c2e068a212ad98e082bf0df6059e7c88a
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0
|
1
|
+
0.1.0
|
data/lib/stackprof/cli.rb
CHANGED
@@ -30,9 +30,12 @@ module StackProf
|
|
30
30
|
Pry::Commands.block_command "all", "print all results by sample time" do
|
31
31
|
session.with_context(self) {|s| s.all }
|
32
32
|
end
|
33
|
-
Pry::Commands.block_command "method", "scope results to matching
|
33
|
+
Pry::Commands.block_command "method", "scope results to matching methods" do |method|
|
34
34
|
session.with_context(self) {|s| s.print_method(method) }
|
35
35
|
end
|
36
|
+
Pry::Commands.block_command "file", "scope results to matching file" do |method|
|
37
|
+
session.with_context(self) {|s| s.print_file(method) }
|
38
|
+
end
|
36
39
|
end
|
37
40
|
|
38
41
|
# Start a Pry session with an optional file
|
@@ -83,6 +86,14 @@ module StackProf
|
|
83
86
|
end
|
84
87
|
end
|
85
88
|
|
89
|
+
def print_file(file)
|
90
|
+
check_for_report
|
91
|
+
|
92
|
+
page do |out|
|
93
|
+
@report.print_file(file, out)
|
94
|
+
end
|
95
|
+
end
|
96
|
+
|
86
97
|
# Simple check to see if a report has been loaded.
|
87
98
|
def check_for_report
|
88
99
|
if !@report
|
data/stackprof-remote.gemspec
CHANGED
@@ -2,16 +2,16 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: stackprof-remote 0.0
|
5
|
+
# stub: stackprof-remote 0.1.0 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "stackprof-remote"
|
9
|
-
s.version = "0.0
|
9
|
+
s.version = "0.1.0"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib"]
|
13
13
|
s.authors = ["Aaron Quint"]
|
14
|
-
s.date = "2014-10-
|
14
|
+
s.date = "2014-10-18"
|
15
15
|
s.description = "stackprof-remote consists of a middleware for easy creation and retreival of\n stackprof sampling profiler dumps from a remote machine, and a wrapper around\n pry (stackprof-cli) to create an interactive session for navigating stackprof\n dumps."
|
16
16
|
s.email = "aaron@quirkey.com"
|
17
17
|
s.executables = ["stackprof-cli", "stackprof-remote"]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stackprof-remote
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aaron Quint
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-10-
|
11
|
+
date: 2014-10-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rbtrace
|