lib/pmux-logview/application.rb in pmux-logview-0.3.4 vs lib/pmux-logview/application.rb in pmux-logview-0.3.10
- old
+ new
@@ -49,10 +49,14 @@
STDERR.reopen("/dev/null", "w")
end
end
def run
+
+#require 'ruby-prof'
+#RubyProf.start
+
initialize()
parse_args()
daemonize()
load_config()
@config["foreground"] = @foreground
@@ -60,9 +64,14 @@
open(@pidfile, 'w') {|f| f << Process.pid } if @pidfile
@host = @config["host"] if @config["host"]
@port = @config["port"] if @config["port"]
Controller.setup(@config)
Controller.run! :bind => @host, :host => @host, :port => @port
+
+#result = RubyProf.stop
+#printer = RubyProf::FlatPrinter.new(result)
+#printer.print(STDOUT)
+
end
end
end
end