Skip to content
This repository was archived by the owner on Jun 1, 2023. It is now read-only.

Commit e3bbc5a

Browse files
committed
Devel-NYTProf-6.06_01
rebased our cperl-core branch to 6.06 Support more cperl features: signatures, enterxssub, builtin strict, anon named subs See https://github.com/rurban/devel-nytprof/tree/cperl-core
1 parent e1c6871 commit e3bbc5a

26 files changed

+296
-181
lines changed

Diff for: .git-rr-cache

Submodule .git-rr-cache updated 133 files

Diff for: MANIFEST

+1
Original file line numberDiff line numberDiff line change
@@ -486,6 +486,7 @@ cpan/Devel-NYTProf/lib/Devel/NYTProf/js/jit/jit-yc.js
486486
cpan/Devel-NYTProf/lib/Devel/NYTProf/js/jit/Treemap.css
487487
cpan/Devel-NYTProf/lib/Devel/NYTProf/js/jquery-min.js
488488
cpan/Devel-NYTProf/lib/Devel/NYTProf/js/jquery-tablesorter-min.js
489+
cpan/Devel-NYTProf/lib/Devel/NYTProf/js/jquery.floatThead.min.js
489490
cpan/Devel-NYTProf/lib/Devel/NYTProf/js/style-tablesorter.css
490491
cpan/Devel-NYTProf/lib/Devel/NYTProf/Reader.pm
491492
cpan/Devel-NYTProf/lib/Devel/NYTProf/ReadStream.pm

Diff for: Porting/Maintainers.pl

+2-1
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ package Maintainers;
475475
},
476476

477477
'Devel::NYTProf' => {
478-
'DISTRIBUTION' => 'TIMB/Devel-NYTProf-6.04.tar.gz',
478+
'DISTRIBUTION' => 'TIMB/Devel-NYTProf-6.06.tar.gz',
479479
'FILES' => q[cpan/Devel-NYTProf],
480480
'EXCLUDED' => [
481481
qr{^t/[79].*\.t},
@@ -507,6 +507,7 @@ package Maintainers;
507507
t/lib/NYTProfTest.pm
508508
t/00-load.t
509509
t/22-readstream.t
510+
t/80-version.t
510511
)],
511512
},
512513

Diff for: cpan/Devel-NYTProf/Makefile.PL

+4-1
Original file line numberDiff line numberDiff line change
@@ -171,12 +171,15 @@ WriteMakefile(
171171
'Test::Differences' => '0.60',
172172
'XSLoader' => 0,
173173
'Getopt::Long' => 0,
174-
'Cpanel::JSON::XS' => 0,
174+
($ENV{PERL_CORE} && $Config{usecperl}
175+
? ('Cpanel::JSON::XS' => 0)
176+
: ('JSON::MaybeXS' => 0)),
175177
},
176178
INST_LIB => ($ENV{PERL_CORE} ? File::Spec->catfile(qw(.. .. lib)) : 'blib/lib'),
177179
INST_ARCHLIB => ($ENV{PERL_CORE} ? File::Spec->catfile(qw(.. .. lib)) : 'blib/arch'),
178180
LIBS => [join ' ', @libs],
179181
OBJECT => q/$(O_FILES)/,
182+
FUNCLIST => ['boot_Devel__NYTProf', 'boot_Devel__NYTProf__FileHandle'],
180183
EXE_FILES => ['bin/nytprofhtml', 'bin/flamegraph.pl', 'bin/nytprofcsv', 'bin/nytprofcalls', 'bin/nytprofcg', 'bin/nytprofmerge', 'bin/nytprofpf'],
181184
@man,
182185
INC => $INCLUDE,

Diff for: cpan/Devel-NYTProf/MemoryProfiling.pod

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ Others:
113113

114114
=item L<http://docs.google.com/present/view?id=dg7kgpct_24cjs3c9fv>
115115

116-
=over L<http://diotalevi.isa-geek.net/~josh/090402/frontend.png>
116+
=item L<http://diotalevi.isa-geek.net/~josh/090402/frontend.png>
117117

118118
=back
119119

Diff for: cpan/Devel-NYTProf/NYTProf.h

+4-3
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,14 @@
1010
* Adam Kaplan, akaplan at nytimes.com
1111
* Tim Bunce, http://www.tim.bunce.name and http://blog.timbunce.org
1212
* Steve Peters, steve at fisharerojo.org
13+
* Forked version by Reini Urban for cperl
1314
*
1415
* ************************************************************************
1516
*/
1617

1718
/* cperl optims */
1819
#ifndef strEQc
19-
/* the buffer ends with \0, includes comparison of the \0.
20-
better than strEQ as it uses memcmp, word-wise comparison. */
21-
#define strEQc(s, c) memEQ(s, ("" c ""), sizeof(c))
20+
#define strEQc(s,c) memEQ(s, ("" c ""), sizeof(c))
21+
#define strNEc(s,c) memNE(s, ("" c ""), sizeof(c))
2222
#endif
23+

Diff for: cpan/Devel-NYTProf/NYTProf.xs

+81-48
Large diffs are not rendered by default.

Diff for: cpan/Devel-NYTProf/bin/flamegraph.pl

+3-2
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,9 @@
106106
my $help = 0;
107107

108108
sub usage {
109-
die <<USAGE_END;
110-
USAGE: $0 [options] infile > outfile.svg\n
109+
die <<USAGE_END;
110+
flame stack grapher
111+
Usage: $0 [options] infile > outfile.svg\n
111112
--title # change title text
112113
--width # width of image (default 1200)
113114
--height # height of each frame (default 16)

Diff for: cpan/Devel-NYTProf/bin/nytprofcalls

+4-3
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ use strict;
1414
use Devel::NYTProf::Core;
1515
require Devel::NYTProf::Data;
1616

17-
our $VERSION = '6.04';
17+
our $VERSION = '6.06_01';
1818

1919
use Data::Dumper;
2020
use Getopt::Long;
@@ -36,7 +36,8 @@ usage() unless @ARGV;
3636

3737
sub usage {
3838
print <<END;
39-
usage: [perl] nytprofcalls [opts] nytprof-file [...]
39+
Print profiled calls
40+
Usage: [perl] nytprofcalls [opts] nytprof-file [...]
4041
4142
--help, -h Print this message
4243
--verbose, -v Be more verbose
@@ -232,7 +233,7 @@ __END__
232233
233234
=head1 NAME
234235
235-
nytprofcalls - experimental
236+
nytprofcalls - Print profiled calls (experimental)
236237
237238
=cut
238239
# vim:ts=8:sw=4:et

Diff for: cpan/Devel-NYTProf/bin/nytprofcg

+2-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,8 @@ for (keys %callmap) {
102102

103103
sub usage {
104104
print <<END;
105-
usage: [perl] nytprofcg [opts]
105+
Convert an NYTProf profile into Callgrind format
106+
Usage: [perl] nytprofcg [opts]
106107
--file <file>, -f <file> Specify NYTProf data file [default: nytprof.out]
107108
--out <file>, -o <file> Specify output file [default: nytprof.callgrind]
108109
--help, -h Print this message

Diff for: cpan/Devel-NYTProf/bin/nytprofcsv

+5-4
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ use Getopt::Long;
1616

1717
use Devel::NYTProf::Reader;
1818

19-
our $VERSION = '4.02';
19+
our $VERSION = '6.06_01';
2020

2121
use constant NUMERIC_PRECISION => 5;
2222

@@ -112,7 +112,8 @@ sub _delete {
112112

113113
sub usage {
114114
print <<END
115-
usage: [perl] nytprofcsv [opts]
115+
Generate CSV reports from Devel::NYTProf data (deprecated)
116+
Usage: [perl] nytprofcsv [opts]
116117
--file <file>, -f <file> Use the specified file as Devel::NYTProf database
117118
file. [default: ./nytprof.out]
118119
--out <dir>, -o <dir> Place generated files here [default: ./nytprof]
@@ -191,7 +192,7 @@ Print the help message
191192
0.00468,3,0.00156,use strict;
192193
0,0,0,
193194
0.00000,1,0,require Exporter;
194-
... thats enough, get the picture? ...
195+
... that's enough, get the picture? ...
195196
196197
Note: The format line indicates what fields the numbers correspond to
197198
@@ -202,7 +203,7 @@ the source might be misaligned
202203
203204
Mailing list and discussion at L<http://groups.google.com/group/develnytprof-dev>
204205
205-
Public SVN Repository and hacking instructions at L<http://code.google.com/p/perl-devel-nytprof/>
206+
Public Github Repository and hacking instructions at L<https://github.com/timbunce/devel-nytprof/>
206207
207208
L<Devel::NYTProf>
208209
L<Devel::NYTProf::Reader>

0 commit comments

Comments
 (0)