Fsdb::F...browdiff(3)
π NAME π
okay bestie, welcome to the Fsdb::F...browdiff(3) page from the User Contributed Perl Documentation β and yes, this is all about dbrowdiff, the little icon that computes row-by-row differences of some column. π
β¨ SYNOPSIS β¨
dbrowdiff [-B|-I|-F] [-A AbsDiffColumnName] [-P PctDiffColumnName]
column
π¦ DESCRIPTION π¦
So for a given column, dbrowdiff computes the differences between each row of the table. Those differences get output to two new columns: absdiff and pctdiff. slay.
The page says differences are either relative to the previous column (incremental mode), or relative to the first row (baseline mode), which is the default. Alternatively, in future mode, the differences are between the next row and the current row. π
If column names are given with -A or -P, then only columns with that name are produced.
π OPTIONS π
-B,--baselineβ Select baseline mode, which is the default, where differences are relative to the first row.-I,--incrementalβ Select incremental mode, where differences are relative to the previous row.-F,--futureβ Select future incremental mode, where differences are incremental between the next row and the current one.-ACOL,--absdiffCOL β Name the absolute difference output columnCOL, and don't output percent difference unless-Pis given.-PCOL,--pctdiffCOL β Name the percent difference output columnCOL, and don't output absolute difference unless-Pis given.-fFORMAT,--formatFORMAT β Specify aprintf(3)-style format for output statistics. Defaults to"%.5g".-eEmptyValue,--emptyβ Specify the value for the last row when in future mode.
This module also supports the standard fsdb options, because consistency is iconic:
-dβ Enable debugging output.-i,--inputInputSource β Read fromInputSource, typically a file name, or-for standard input, or (if in Perl) anIO::Handle,Fsdb::IOorFsdb::BoundedQueueobject.-o,--outputOutputDestination β Write toOutputDestination, typically a file name, or-for standard output, or (if in Perl) anIO::Handle,Fsdb::IOorFsdb::BoundedQueueobject.--autorun,--noautorunβ By default, programs process automatically, butFsdb::Filterobjects in Perl do not run until you invoke therun()method. The--(no)autorunoption controls that behavior within Perl.--helpβ Show help.--manβ Show full manual.
πΈ SAMPLE USAGE πΈ
Input:
#fsdb event clock:d
_null_getpage+128 815812813.281756
_null_getpage+128 815812813.328709
_null_getpage+128 815812813.353830
_null_getpage+128 815812813.357169
_null_getpage+128 815812813.375844
_null_getpage+128 815812813.378358
# | /home/johnh/BIN/DB/dbrow
# | /home/johnh/BIN/DB/dbcol event clock
Command:
cat DATA/kitrace.fsdb | dbrowdiff clock
Output:
#fsdb event clock:d absdiff:d pctdiff:d
_null_getpage+128 815812813.281756 0 0
_null_getpage+128 815812813.328709 0.046953 5.7554e-09
_null_getpage+128 815812813.353830 0.072074 8.8346e-09
_null_getpage+128 815812813.357169 0.075413 9.2439e-09
_null_getpage+128 815812813.375844 0.094088 1.1533e-08
_null_getpage+128 815812813.378358 0.096602 1.1841e-08
# | /home/johnh/BIN/DB/dbrow
# | /home/johnh/BIN/DB/dbcol event clock
# | dbrowdiff clock
π SEE ALSO π
Fsdb. dbcolmovingstats. dbrowuniq. dbfilediff.
dbrowdiff, dbrowuniq, and dbfilediff are similar but different, bestie. dbrowdiff computes row-by-row differences for a column, dbrowuniq eliminates rows that have no differences, and dbfilediff compares fields of two files.
π§ CLASS FUNCTIONS π§
new
$filter = new Fsdb::Filter::dbrowdiff(@arguments);
Create a new dbrowdiff object, taking command-line arguments.
set_defaults
$filter->set_defaults();
Internal: set up defaults.
parse_options
$filter->parse_options(@ARGV);
Internal: parse command-line arguments.
setup
$filter->setup();
Internal: setup, parse headers.
run
$filter->run();
Internal: run over each rows.
π AUTHOR and COPYRIGHT π
Copyright (C) 1991-2024 by John Heidemann <johnh@isi.edu>
This program is distributed under terms of the GNU general public license, version 2. See the file COPYING with the distribution for details.
okay bestie, that's the whole Fsdb::F...browdiff(3) page π β from perl v5.32.1, dated 2024-08-02. π
π¦ where this page comes from
- epel 9: perl-Fsdb 2:3.9-1.el9 Β· GPLv2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms