Tuesday, August 21, 2007

find slow actions in rails




From DZone snippets:


# Show a list of actions sorted by time taken. Useful for finding slow actions.
cat log/development.log | awk '/Completed/ { print "[" $3 "] - " $0 }' | sort -nr