public
Fork of mojombo/god
Description: Ruby process monitor
Homepage: http://god.rubyforge.org
Clone URL: git://github.com/Bertg/god.git
Search Repo:
add --bleakhouse for diagnostics
mojombo (author)
Wed Feb 13 13:52:33 -0800 2008
commit  cd36d89d37c24172649ee13fa69eb333db9a80a3
tree    06a0bc2fbf7c66acfee33ea6015998520ad57809
parent  886f281595c2d8dbeeae12b7ba700922b0dc8fbe
...
2
3
4
 
...
2
3
4
5
0
@@ -2,3 +2,4 @@ coverage
0
 pkg
0
 *.log
0
 logs
0
+*.rbc
...
87
88
89
 
 
 
 
90
91
92
...
87
88
89
90
91
92
93
94
95
96
0
@@ -87,6 +87,10 @@ begin
0
     opts.on("--no-events", "Disable the event system") do
0
       options[:events] = false
0
     end
0
+
0
+ opts.on("--bleakhouse", "Enable bleakhouse profiling") do
0
+ options[:bleakhouse] = true
0
+ end
0
   end
0
   
0
   opts.parse!
...
130
131
132
 
 
 
 
133
134
135
...
130
131
132
133
134
135
136
137
138
139
0
@@ -130,6 +130,10 @@ module God
0
       def run_in_front
0
         require 'god'
0
         
0
+ if @options[:bleakhouse]
0
+ BleakHouseDiagnostic.install
0
+ end
0
+
0
         # start attached pid watcher if necessary
0
         if @options[:attach]
0
           self.attach
...
22
23
24
25
26
 
 
27
28
29
...
22
23
24
 
 
25
26
27
28
29
0
@@ -22,8 +22,8 @@ class BleakHouseDiagnostic
0
     File.delete(LOG_FILE) rescue nil
0
   end
0
   
0
- def self.snapshot
0
- self.logger.snapshot(LOG_FILE, "timer", false) if self.logger
0
+ def self.snapshot(name)
0
+ self.logger.snapshot(LOG_FILE, name, false) if self.logger
0
   end
0
   
0
   def self.spin(delay = 1)

Comments

    No one has commented yet.