Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/GAP/pkg/profiling/FlameGraph/   (Algebra von RWTH Aachen Version 4.15.1©)  Datei vom 21.5.2025 mit Größe 1 kB image not shown  

Quelle  stackcollapse-aix.pl   Sprache: Shell

 
#!/usr/bin/perl -ws
#
# stackcollapse-aix  Collapse AIX /usr/bin/procstack backtraces
#
# Parse a list of backtraces as generated with the poor man's aix-perf.pl
# profiler 
#

use strict;

my $process = "";
my $current = "";
my $previous_function = "";

my %stacks;

while(<>) {
  chomp;
  if (m/^\d+:/) {
    if(!($current eq "")) {
      $current = $process . ";" . $current;
      $stacks{$current} += 1;
      $current = "";
    }
    m/^\d+: ([^ ]*)/;
    $process = $1;
    $current = "";
  }
  elsif(m/^---------- tid# \d+/){
    if(!($current eq "")) {
      $current = $process . ";" . $current;
      $stacks{$current} += 1;
    }
    $current = "";
  }
  elsif(m/^(0x[0-9abcdef]*) *([^ ]*) ([^ ]*) ([^ ]*)/) {
    my $function = $2;
    my $alt = $1;
    $function=~s/\(.*\)?//;
    if($function =~ /^\[.*\]$/) {
      $function = $alt;
    }
    if ($current) {
      $current = $function . ";" . $current;
    }
    else {
      $current = $function;
    }
  }
}

if(!($current eq "")) {
  $current = $process . ";" . $current;
  $stacks{$current} += 1;
  $current = "";
  $process = "";
}

foreach my $k (sort { $a cmp $b } keys %stacks) {
  print "$k $stacks{$k}\n";
}

90%


¤ Dauer der Verarbeitung: 0.14 Sekunden  (vorverarbeitet)  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

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 ist noch experimentell.