onis 0.1 → 0.1.1

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.
Files changed (4) hide show
  1. data/README.md +8 -1
  2. data/bin/onis +1 -1
  3. data/onis.gemspec +1 -1
  4. metadata +1 -1
data/README.md CHANGED
@@ -11,12 +11,15 @@ Onis gives you introspection into object counts of live running ruby process.
11
11
 
12
12
  $ cd onis/
13
13
 
14
- $ cat test/stringpwd.rb &
14
+ $ cat test/stringpwd.rb
15
15
  require 'onis'
16
16
  puts Process.pid
17
17
  a = []
18
18
  while true ; a << "foo" ; sleep(0.5) ; end
19
19
 
20
+ $ ruby test/stringpwd.rb &
21
+ [1] 26584
22
+
20
23
  $ onis
21
24
  PID COMMAND
22
25
  ------------------------------------------------------------
@@ -40,6 +43,10 @@ Onis gives you introspection into object counts of live running ruby process.
40
43
 
41
44
  $ onis -f -c 26584
42
45
 
46
+ ## Watch!
47
+
48
+ $ onis -w 26584
49
+
43
50
  ## How it works
44
51
 
45
52
  1. Onis drops a tempfile named after the pid `onis.<pid>`
data/bin/onis CHANGED
@@ -12,7 +12,7 @@ color = false
12
12
 
13
13
  # setup command
14
14
  command = `uname`.chomp == "Darwin" ? "command" : "cmd"
15
- psax = `ps -axo pid,#{command}`
15
+ psax = `ps axo pid,#{command}`
16
16
  format = "%-10s %s\n"
17
17
 
18
18
  ARGV.options do |o|
data/onis.gemspec CHANGED
@@ -3,7 +3,7 @@ Gem::Specification.new do |s|
3
3
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
4
4
 
5
5
  s.name = 'onis'
6
- s.version = '0.1'
6
+ s.version = '0.1.1'
7
7
  s.date = '2009-10-27'
8
8
 
9
9
  s.description = "Live ObjectSpace introspection"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: onis
3
3
  version: !ruby/object:Gem::Version
4
- version: "0.1"
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Blake Mizerany