Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Pulling memprof out of project

  • Loading branch information...
commit 3bca8e32b948f674a02c18928a7c995a08e76895 1 parent f48850a
Winton Welsh authored
1  config/gemsets.yml
... ... @@ -1,7 +1,6 @@
1 1 puggernaut:
2 2 em-websocket: ~>0.3.1
3 3 eventmachine: ~>0.12.10
4   - memprof: ~>0.3.10
5 4 rake: >=0.8.7
6 5 rspec: ~>1.0
7 6 sinatra: ~>1.1.0
3  config/gemspec.yml
... ... @@ -1,5 +1,5 @@
1 1 name: puggernaut
2   -version: 0.2.2
  2 +version: 0.2.3
3 3 authors:
4 4 - Winton Welsh
5 5 email: mail@wintoni.us
@@ -9,5 +9,4 @@ description: Simple server push implementation using eventmachine and long polli
9 9 dependencies:
10 10 - em-websocket
11 11 - eventmachine
12   - - memprof
13 12 development_dependencies: null
1  lib/puggernaut.rb
@@ -4,7 +4,6 @@
4 4
5 5 require 'eventmachine'
6 6 require 'em-websocket'
7   -require 'memprof'
8 7
9 8 $:.unshift File.dirname(__FILE__)
10 9
3  lib/puggernaut/server.rb
@@ -14,7 +14,6 @@ def initialize(http_port=8100, tcp_port=http_port.to_i+1, ws_port=tcp_port.to_i+
14 14 puts "*snort*\n\n"
15 15
16 16 begin
17   - Memprof.start
18 17 Channel.channels = []
19 18 EM.epoll if EM.epoll?
20 19 EM.run do
@@ -29,8 +28,6 @@ def initialize(http_port=8100, tcp_port=http_port.to_i+1, ws_port=tcp_port.to_i+
29 28
30 29 errors = 0
31 30 end
32   - Memprof.stats(Dir.pwd + '/log/puggernaut.mem.log')
33   - Memprof.stop
34 31 rescue Interrupt
35 32 logger.info "Server#initialize - Shutting down"
36 33 exit

0 comments on commit 3bca8e3

Please sign in to comment.
Something went wrong with that request. Please try again.