-
Notifications
You must be signed in to change notification settings - Fork 255
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
peek into file before open #539
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
one minor issue, otherwise lgtm
This comment was marked as resolved.
This comment was marked as resolved.
yes, and the second message in the middle too. ideally, rephrase it to the more terse
|
I've started to add some tests. I can already use the tests/integrationtests/custom_cost_aggregation_testfiles/custom_cost_aggregation.perfparser file (use it both under its original name and copy it to a local file "fruitper" (opening works as expected in both cases), but I do miss a matching perf.data file. Can you create and upload it (for later tests maybe multiple versions [with/without Do you have a PERFFILE (perf V1) anywhere [or even a Linux < 3.7 to create it]? I've only hex-edited a text-file, to trigger that message so far. |
This comment was marked as outdated.
This comment was marked as outdated.
1f5e434
to
f41fe8e
Compare
This comment was marked as outdated.
This comment was marked as outdated.
7fccf85
to
4ffef0b
Compare
Requested changes done, PERFv1 and PERFv2 added, fixed opening of perf.data.gz (now also covered by the testsuite). |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
lol, clang_lazy complains about |
odd bug, esp. considering we do |
we cannot run perf properly anyways inside the VM I believe, though maybe the task-clock backend is good enough for some basic testing. generally, it's a tricky one to get working in a portable fashion - I am not very fond of it anymore. it breaks every other day, when we update the compiler, elfutils or perf...
what test, backtrace? |
This comment was marked as outdated.
This comment was marked as outdated.
I agree.
Thanks.
Which ones? While learning about QT and its |
Don't you see the two review comments of mine? |
This comment was marked as outdated.
This comment was marked as outdated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for some reasons these review changes didn't get published 🤷
@milianw Just a friendly ping - Is there anything open with this or the other PRs from my side? |
* dropped unused headers * COMPARE_OR_THROW -> QCOMPARE * VERIFY_OR_THROW -> QVERIFY
* check file open, providing nice and early error * explicit check for perfparser (magic number QPERFSTREAM) opening directly without the need to fall back to file name * explicit check for V1 perf data which isn't supported by perfparser * explicit check for unknown file type
This is fixed upstream in Qt 6.3+ so for now we just disable the check in the test file where we run into it for Qt versions lower than 6.3.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, I removed one more usage of QString::isNull
and added a patch to disable the clazy issues to get the CI green again - let's see if that's really the case then this can be merged
yep, lgtm now, I'll merge it - thanks for your contribution and patience with me :) |
Fixes: #477