#!/usr/bin/perl -w # # stackcolllapse-java-exceptions.pl collapse java exceptions (found in logs) into single lines. # # Parses Java error stacks found in a log file and outputs them as # single lines, with methods separated by semicolons, and then a space and an # occurrence count. Inspired by stackcollapse-jstack.pl except that it does # not act as a performance profiler. # # It can be useful if a Java process dumps a lot of different stacks in its logs # and you want to quickly identify the biggest culprits. # # USAGE: ./stackcollapse-java-exceptions.pl infile > outfile # # Copyright 2018 Paul de Verdiere. All rights reserved.
use strict;
use Getopt::Long;
# tunables
my $shorten_pkgs = 0; # shorten package names
my $no_pkgs = 0; # really shorten package names!!
my $help = 0;
sub usage {
die <<USAGE_END;
USAGE: $0 [options] infile > outfile\n
--shorten-pkgs : shorten package names
--no-pkgs : suppress package names (makes SVG much more readable)
¤ Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.0.14Bemerkung:
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.