RECENT POSTS

P5-class-accessor-named

May 26, 2018

Better profiling output for Class::Accessor

ClassAccessor is a great way to automate the tedious task of generating accessors and mutators. One small drawback is that due to the details of the implementation, you only get one ANON entry in profiling output. That entry contains all your accessors, which can be a real pain if you’re attempting to figure out which of your accessors is being called six billion times. This module is a development aid which uses HookLexWrap and SubName to talk your accessors into identifying themselves. While it shouldn’t add much additional runtime overhead as it acts only ClassAccessor’s generator functions, it has not been designed for production deployment.

WWW http//search.cpan.org/dist/Class-Accessor-Named/