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

File tree

26 files changed

+296
-181
lines changed

26 files changed

+296
-181
lines changed

.git-rr-cache

Submodule .git-rr-cache updated 133 files

MANIFEST

Lines changed: 1 addition & 0 deletions
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

Porting/Maintainers.pl

Lines changed: 2 additions & 1 deletion
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

cpan/Devel-NYTProf/Makefile.PL

Lines changed: 4 additions & 1 deletion
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,

cpan/Devel-NYTProf/MemoryProfiling.pod

Lines changed: 1 addition & 1 deletion
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

cpan/Devel-NYTProf/NYTProf.h

Lines changed: 4 additions & 3 deletions
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+

cpan/Devel-NYTProf/NYTProf.xs

Lines changed: 81 additions & 48 deletions
Large diffs are not rendered by default.

cpan/Devel-NYTProf/bin/flamegraph.pl

Lines changed: 3 additions & 2 deletions
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)

cpan/Devel-NYTProf/bin/nytprofcalls

Lines changed: 4 additions & 3 deletions
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

cpan/Devel-NYTProf/bin/nytprofcg

Lines changed: 2 additions & 1 deletion
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

0 commit comments

Comments
 (0)