NYTPROFCSV(1)

πŸ“¦
version 6.14 Β· 4 versions
, in fedora 43

πŸ’– NYTPROFCSV β€” the nytprofcsv manual page, bestie edition πŸ’–

okay so this is the manual page for nytprofcsv, from the User Contributed Perl Documentation section (that's section 1, aka "you type this in a terminal"). sit down, grab a strawberry, we're doing CSV profiling reports πŸ“βœ¨


✨ NAME ✨

nytprofcsv β€” (DEPRECATED) the CSV format implementation of Devel::NYTProf::Reader

say it with me: DEPRECATED. it's giving "still works but its days are numbered" πŸ’€

πŸ¦‹ SYNOPSIS πŸ¦‹

 $ nytprofcsv [-h] [-d] [-o <output directory>] [-f <input file>]

 perl -d:NYTProf some_perl_app.pl
 nytprofcsv
 Generating CSV Output...

like. you profile your app, you run nytprofcsv, and boom β€” CSV. that's the whole arc πŸ’…


πŸŽ€ NOTE πŸŽ€

nytprofcsv is deprecated and will be removed in a future release.

no cap, this is a warning: it will be removed. future release. gone. don't build your whole pipeline on it unless you love chaos πŸ™ˆ

πŸ’œ DESCRIPTION πŸ’œ

nytprofcsv is a script that implements Devel::NYTProf::Reader to create comma-separated value formatted reports from Devel::NYTProf databases.

for more info, go look at the Devel::NYTProf Perl code profiler. it's the main character of this whole story πŸ‘‘


🌈 COMMAND-LINE OPTIONS 🌈

these are the command line options understood by nytprofcsv, and yes bestie, we're listing all of them πŸ’–

  • -f, --file <filename> β€” tells it where the input file lives. heads up: the input file must be the output of fprofpp. default: nytprof.out
  • -o, --out <dir> β€” where the generated report gets dropped. default: ./nytprof/
  • -d, --delete β€” purges any existing database located at whatever -o (above) is set to. like, it deletes it. at that path. that's the vibe πŸ—‘οΈ
  • -h, --help β€” prints the help message. the classic ✨

🌸 SAMPLE OUTPUT 🌸

here's what it spits out, and honestly? look at those numbers being all tidy and comma-separated πŸ₯Ή

 # Profile data generated by Devel::NYTProf::Reader v.0.01
 # Format: time,calls,time/call,code
 0,0,0,#--------------------------------------------------------------------
 0,0,0,# My New Source File!
 0,0,0,#--------------------------------------------------------------------
 0,0,0,
 0,0,0,package NYT::Feeds::Util;
 0.00047,3,0.000156666666666667,use Date::Calc qw(Add_Delta_DHMS);
 0.00360,3,0.0012,use HTML::Entities;
 0.00212,3,0.000706666666666667,use Encode;
 0.00248,3,0.000826666666666667,use utf8;
 0.00468,3,0.00156,use strict;
 0,0,0,
 0.00000,1,0,require Exporter;
 ... that's enough, get the picture? ...

Note: that format line tells you which fields the numbers correspond to. it's the key, iykyk πŸ”‘

Note2: if the source file gets modified between profiling and report generation, the source might be misaligned. so like, don't touch the file mid-process, bestie 😭


🧚 SEE ALSO 🧚


πŸ‘‘ AUTHOR πŸ‘‘

Adam Kaplan, akaplan at nytimes dotcom. legend. thank you for your service 🫑


This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.


and that's the whole page, bestie!! this one came from perl v5.42.0 and it's dated 2025-07-25 β€” so like, remember the date, hydrate, and go profile something pretty. bye pookie, slay responsibly πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from