Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/MariaDB/mysql-test/suite/plugins/t/   (MariaDB Server Version 8.1-8.4©)  Datei vom 1.9.2026 mit Größe 616 B image not shown  

Quelle  normalize_query_id.pl   Sprache: Shell

 

#!/usr/bin/perl
use strict;
use warnings;

my $filename = $ARGV[0] or die "Usage: $0 <logfile>\n";

# Read all lines into memory
open(my $fh, '<', $filename) or die "Cannot open file '$filename': $!";
my @lines = <$fh>;
close($fh);

# Process lines and normalize query IDs
my $first_id;
foreach my $line (@lines) {
  if ($line =~ /,(\d+),QUERY/) {
    $first_id = $1 unless defined $first_id;
    my $normalized = $1 - $first_id;
    $line =~ s/,$1,QUERY/,$normalized,QUERY/;
  }
}

# Write back to the same file
open($fh, '>', $filename) or die "Cannot write to file '$filename': $!";
print $fh @lines;
close($fh);

Messung V0.5 in Prozent
C=84 H=0 G=59

¤ Dauer der Verarbeitung: 0.8 Sekunden  (vorverarbeitet am  2026-10-08) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

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 und die Messung sind noch experimentell.