format :html do view :core do |args| oldmem = session[:memory] session[:memory] = newmem = card.profile_memory stats = %{
Stat | Value | Action |
---|---|---|
cards | #{ Card.where(:trash=>false).count } | |
trashed cards | #{ Card.where(:trash=>true).count } | #{link_to 'delete all', wagn_path( 'update/:all?task=empty_trash' )} |
actions | #{ Card::Action.count } | #{link_to 'delete old', wagn_path( 'update/:all?task=delete_old_revisions' ) } |
references | #{ Card::Reference.count } | #{link_to 'repair all', wagn_path( 'update/:all?task=repair_references' ) } |
sessions | #{ ActiveRecord::SessionStore::Session.count } | delete older than #{ delete_sessions_link 1 } #{ delete_sessions_link 2 } #{ delete_sessions_link 3 } months |
memory now | #{ newmem }M | #{link_to 'clear cache', wagn_path( 'update/:all?task=clear_cache' ) } |
memory prev | #{ oldmem }M | |
memory diff | #{ newmem - oldmem }M |