Skip to content

Commit

Permalink
xsbench: Fix report extraction
Browse files Browse the repository at this point in the history
Signed-off-by: Mel Gorman <mgorman@techsingularity.net>
  • Loading branch information
gormanm committed Feb 19, 2025
1 parent 6a92a70 commit 397a8b7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions bin/lib/MMTests/ExtractXsbench.pm
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ use strict;
sub initialise() {
my ($self, $subHeading) = @_;
$self->{_ModuleName} = "ExtractXsbench";
$self->{_DataType} = DataTypes::DATA_OPS_PER_SECOND;
$self->{_PlotYaxis} = DataTypes::LABEL_OPS_PER_SECOND;
$self->{_PreferredVal} = "Higher";
$self->{_PlotType} = "operation-candlesticks";
$self->{_Opname} = "Lookups/Sec";

Expand All @@ -17,14 +18,14 @@ sub initialise() {

sub extractReport() {
my ($self, $reportDir) = @_;
my @threads = $self->discover_scaling_parameters($reportDir, "xsbench-", "-1.log");
my @threads = $self->discover_scaling_parameters($reportDir, "xsbench-", "-1.log.gz");

die("No data") if $threads[0] eq "";

foreach my $nr_threads (@threads) {
my $nr_samples = 0;

foreach my $file (<$reportDir/xsbench-$nr_threads-*.log>) {
foreach my $file (<$reportDir/xsbench-$nr_threads-*.log.gz>) {
my $input = $self->SUPER::open_log($file);
while (<$input>) {
my $line = $_;
Expand Down

0 comments on commit 397a8b7

Please sign in to comment.