FEATURE: add rss to bench

BUGFIX: profile db generator require ordering
This commit is contained in:
Sam
2014-01-03 11:51:12 +11:00
parent 9f2150faea
commit 90a7cb9dc3
2 changed files with 19 additions and 16 deletions

View File

@ -174,13 +174,16 @@ begin
run("RAILS_ENV=profile bundle exec rake assets:clean")
rss = `ps -o rss -p #{pid}`.chomp.split("\n").last.to_i
results = {
"home_page" => home_page,
"topic_page" => topic_page,
"home_page_admin" => home_page_admin,
"topic_page_admin" => topic_page_admin,
"timings" => @timings,
"ruby-version" => "#{RUBY_VERSION}-p#{RUBY_PATCHLEVEL}"
"ruby-version" => "#{RUBY_VERSION}-p#{RUBY_PATCHLEVEL}",
"rss_kb" => rss
}.merge(facts).to_yaml
puts results