javierhonduco / rbperf

Low-overhead sampling profiler and tracer for Ruby for Linux

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mismatched frame count issues

javierhonduco opened this issue · comments

I see a lot of:

[2023-02-22T19:00:24Z ERROR rbperf::rbperf] mismatched expected=148 and received=129 frame count
[2023-02-22T19:00:24Z ERROR rbperf::rbperf] mismatched expected=145 and received=132 frame count
[2023-02-22T19:00:24Z ERROR rbperf::rbperf] mismatched expected=145 and received=132 frame count
[2023-02-22T19:00:24Z ERROR rbperf::rbperf] mismatched expected=145 and received=132 frame count
[2023-02-22T19:00:24Z ERROR rbperf::rbperf] mismatched expected=145 and received=132 frame count
[2023-02-22T19:00:24Z ERROR rbperf::rbperf] mismatched expected=145 and received=132 frame count
[2023-02-22T19:00:24Z ERROR rbperf::rbperf] mismatched expected=148 and received=129 frame count
[2023-02-22T19:00:24Z ERROR rbperf::rbperf] mismatched expected=148 and received=129 frame count
[2023-02-22T19:00:24Z ERROR rbperf::rbperf] mismatched expected=148 and received=129 frame count
[2023-02-22T19:00:24Z ERROR rbperf::rbperf] mismatched expected=176 and received=173 frame count
[2023-02-22T19:00:24Z ERROR rbperf::rbperf] mismatched expected=176 and received=170 frame count
[2023-02-22T19:00:24Z ERROR rbperf::rbperf] mismatched expected=184 and received=183 frame count
[2023-02-22T19:00:24Z ERROR rbperf::rbperf] mismatched expected=185 and received=184 frame count
[2023-02-22T19:00:24Z ERROR rbperf::rbperf] mismatched expected=185 and received=184 frame count
[2023-02-22T19:00:24Z ERROR rbperf::rbperf] mismatched expected=185 and received=184 frame count
[2023-02-22T19:00:24Z ERROR rbperf::rbperf] mismatched expected=224 and received=222 frame count
[2023-02-22T19:00:24Z ERROR rbperf::rbperf] mismatched expected=224 and received=222 frame count
[2023-02-22T19:00:24Z ERROR rbperf::rbperf] mismatched expected=224 and received=222 frame count
[2023-02-22T19:00:24Z ERROR rbperf::rbperf] mismatched expected=224 and received=222 frame count
[2023-02-22T19:00:24Z ERROR rbperf::rbperf] mismatched expected=234 and received=232 frame count
[2023-02-22T19:00:24Z ERROR rbperf::rbperf] mismatched expected=235 and received=233 frame count
[2023-02-22T19:00:24Z ERROR rbperf::rbperf] mismatched expected=234 and received=233 frame count
[2023-02-22T19:00:24Z ERROR rbperf::rbperf] mismatched expected=234 and received=233 frame count

I got a flame graph, but it is basically invalid because far more samples errored than were successful:

Got 10616 samples and 869805 errors

Originally posted by @dalehamel in #62 (comment)

This should be sorted out once #70 is addressed. In addition, the error counters could use some improvements 😅.

Closing this issue as three pieces of work have landed that should help here:

  • Reduce index collisions #74
  • Improved stats, as some events weren't accounted for properly #75
  • Increased the maximum size of Ruby stacks to 750 frames from 150 #65