-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Relax assertions when both PER CALL values are equal (Erlang/OTP 28) #14565
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
Conversation
Fixes the sort issue that happen on `Erlang 28.0` where both columns have equal value.
I've used `[^\n]+3\.\d{2}\n` to match `3.00` value of `PER CALL` column at the end of the line.
|
I like your alternative solution, relying less on regexes, but we should also check on the calls. Perhaps we build |
Improvements: * Does not require `Erlang/OTP` version check * Independent of `JIT` optimisations and architecture * Properly validates sorted results * Asserts mfa string as column value
|
@josevalim I have send an alternative version. Unfortunately we cannot guarantee the order of Here are my results for this task: |
|
Oh, wait - I have just realised something something … This is the only test that uses |
|
@josevalim I have reverted back to old regex solution, because it's shorter, but I kept the change in |
Signed-off-by: Tomasz Marek Sulima <[email protected]>
Added assertion for the result sort order. Signed-off-by: Tomasz Marek Sulima <[email protected]>
…er needed as we sort by calls column Signed-off-by: Tomasz Marek Sulima <[email protected]>
Fixes: #14564
This fix implements
Erlang/OTPversion check. The alternative solution could be:The alternative solution additionally does not relies on
3.\d{2}value pattern ofPER CALLcolumn.