Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unstable results on macOS #209

Open
hurricup opened this issue Mar 10, 2023 · 1 comment
Open

Unstable results on macOS #209

hurricup opened this issue Mar 10, 2023 · 1 comment

Comments

@hurricup
Copy link

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

@hurricup
Copy link
Author

optimize flag does not make a difference

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant