Commit 812f20ab1a04c5831ddc373c7e00bb758e48ad19
Exists in
master
and in
29 other branches
Merge remote-tracking branch 'origin/master'
Showing
1 changed file
with
0 additions
and
2 deletions
Show diff stats
lib/log_memory_consumption_job.rb
| 1 | class LogMemoryConsumptionJob < Struct.new(:last_stat) | 1 | class LogMemoryConsumptionJob < Struct.new(:last_stat) |
| 2 | # Number of entries do display | 2 | # Number of entries do display |
| 3 | N = 20 | 3 | N = 20 |
| 4 | - # In seconds | ||
| 5 | - PERIOD = 10 | ||
| 6 | 4 | ||
| 7 | def perform | 5 | def perform |
| 8 | logpath = File.join(Rails.root, 'log', "#{ENV['RAILS_ENV']}_memory_consumption.log") | 6 | logpath = File.join(Rails.root, 'log', "#{ENV['RAILS_ENV']}_memory_consumption.log") |