Skip to content

Instantly share code, notes, and snippets.

@schwern
Created September 24, 2011 20:27
Show Gist options
  • Save schwern/1239816 to your computer and use it in GitHub Desktop.
Save schwern/1239816 to your computer and use it in GitHub Desktop.
Profile MXMS empty method call
BEGIN { DB::disable_profile() }
{
package Foo;
use Moose;
use MooseX::Method::Signatures;
method empty {}
}
my $obj = Foo->new;
# Run it once to see if Moose needs to initialize itself?
$obj->empty;
BEGIN { DB::enable_profile() }
$obj->empty for 1..10;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment