mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 15:28:37 +08:00
FEATURE: add rss to bench
BUGFIX: profile db generator require ordering
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user