This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
simplify PERL_MEM_LOG
authorJim Cromie <jim.cromie@gmail.com>
Wed, 17 Jun 2009 08:12:45 +0000 (02:12 -0600)
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>
Sun, 21 Jun 2009 12:11:51 +0000 (14:11 +0200)
commit1cd8acb500c6fd96bf025feb0647211c271b7e2e
tree0152954999fb9251cbfafbed325ac00f2ee641f2
parent73d1d97336c68e0f5b29937cb9347a00df4c645c
simplify PERL_MEM_LOG

This combines multiple environment variable reads into 1,
where it looks for values like "2mst"
-2 leading digits are atoi()d to get FD
-m memory logging please
-s sv logging also
-t timestamp those please.

Combining these reduces overhead such that it seemed
worthwhile to drop all the ifdefs.  TBD whether this works
in the environment that drove the original tradeoffs.

If it isnt enough, Id be tempted by a global static ptr,
and on 1st use, is read, seen 0, a lock is taken, and getenvar
run to populate it, unlocked, proceed.  This would remove
iterative overheads.
util.c