This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Porting/bench.pl --grindargs can be abused, usefully.
authorJim Cromie <jim.cromie@gmail.com>
Tue, 12 Apr 2016 22:59:37 +0000 (16:59 -0600)
committerTony Cook <tony@develop-help.com>
Wed, 15 Jun 2016 01:52:08 +0000 (11:52 +1000)
commit8a094feeb16ec802357524d7ca31bc69c5c07bf1
tree5e13cbab36830d80f97ae6c35b727bafb62b591c
parent60858fe86ce0e2182138f1006d72637ca0621048
Porting/bench.pl --grindargs can be abused, usefully.

Add an example where --grindargs='3>foobar' opens an extra file
descriptor for writing, and PERL_MEM_LOG=3 causes perl to log to the
file instead of STDERR, so that the output doesnt cause
parse_cachegrind() to choke, which would abort the test.

The example also demonstrates overriding default grind options, ie
--cachegrind-out-file=junk.$$.  This has no obvious utility at
present, and perhaps buries the lead.
Porting/bench.pl