A piggy bank of commands, fixes, succinct reviews, some mini articles and technical opinions from a (mostly) Perl developer.

Jump to

Quick reference

Showing posts with label profiling. Show all posts
Showing posts with label profiling. Show all posts

Perl testing/profiling

  • Devel::DProf - subroutine profiler
  • Devel::NYTProf - the best one, apparently
  • Devel::SmallProf - line-by-line profiler
  • Devel::Cover - Test coverage
  • HTML::Mason::Plugin - manual method for Mason components

Profiling MySQL

SET profiling = 1;

SET
profiling_history_size = 100; -- maximum is 100

SHOW PROFILES; -- shows a list of recent commands

SHOW PROFILE; -- shows a very detailed breakdown of time spent on each database task

For example, if a lot of time is spent 'Sending data', try improving your indexes.

http://dev.mysql.com/doc/refman/5.0/en/show-profiles.html