Skip to content

Unstable results on macOS  #209

@hurricup

Description

@hurricup

Recently I started to expand integration tests for my Perl plugin for IntelliJ IDEA and found out that for some reason profiler produces unstable results in different runs. Ubuntu and Windows are fine.

  • perl-5.36.0
  • latest NytProf

Here is my test script:

sub something {
    my $scalar = 1;
    if ($scalar > 2) {
        print "false";
    }
    elsif ($scalar < 2) {
        print 'true';
    }
    print 'done';
}

BEGIN{
    print 'begin block';
}

print 42;
something();

END{
    print 'this is the end';
}

And here are 2 different runs stmts=0:calls=2:savesrc=0:slowops=1:sigexit=1:addpid=1:start=init:

image

And here are 2 different runs stmts=0:calls=2:savesrc=0:slowops=1:sigexit=1:addpid=1:start=begin:

image

Cross-reference: Camelcade/Perl5-IDEA#2609

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions