Uh oh!
There was an error while loading. Please reload this page.
ARROW-16981: [C++] Expose jemalloc statistics for logging - #13516
Conversation
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
b58b1d9 to
3ccabc3CompareUh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
9dac9b4 to
307063dComparerok
commented
Sep 9, 2022
@pitrou any idea why is overloading not allowed? It builds and works ok locally. |
lidavidm
commented
Sep 9, 2022
presumably because uint64_t and size_t are actually the same type on those platforms (also, we use raw pointers for out parameters, not references, typically) |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
2224027 to
d1b68edComparerok
commented
Sep 9, 2022
Do we want Python binding for these as well? |
pitrou
commented
Sep 10, 2022
I don't know, why not? Can be a separate JIRA, though. |
rok
commented
Sep 12, 2022
Added ARROW-17685 for the Python wrapper. |
1df8c26 to
f06e125CompareUh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
benibus
left a comment
There was a problem hiding this comment.
Here are some potential changes for implementing the callback API with std::function, which uses closures instead of a client-provided void*. I updated the relevant tests as well.
Hopefully this is the correct method of suggesting patches... the github diffs appear to be against the base branch, not the latest commit.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Antoine Pitrou <pitrou@free.fr>
This looks good to me! Thanks a lot @benibus !
Well this was pretty nice for me but maybe extra work for you :). I added you as a collaborator to my fork in case you'd want to push more changes to this branch and avoid the UI. I've also linted and rebased. |
Co-authored-by: Ben Harkins <60872452+benibus@users.noreply.github.com>
pitrou
left a comment
There was a problem hiding this comment.
Thanks for the update. Some further comments below, but looks good on the principle.
Uh oh!
There was an error while loading. Please reload this page.
| auto cb_wrapper = [](void* opaque, const char* str) { | ||
| (*static_cast<std::function<void(const char*)>*>(opaque))(str); | ||
| }; | ||
| if (write_cb) { |
There was a problem hiding this comment.
Is this required? I think the caller should make sure that write_cb is initialized.
There was a problem hiding this comment.
I think not but not sure. I removed it for now. @benibus do you think this would be needed?
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Antoine Pitrou <pitrou@free.fr>
Thanks for the review @pitrou! I've addressed your points. |
pitrou
commented
Sep 21, 2022
rok
commented
Sep 21, 2022
ursabot
commented
Sep 21, 2022
Benchmark runs are scheduled for baseline = bd433c0 and contender = 8d11e3d. 8d11e3d is a master commit associated with this PR. Results will be available as each benchmark for each run completes. |
This is to resolve [ARROW-16981](https://issues.apache.org/jira/browse/ARROW-16981). Lead-authored-by: Rok <rok@mihevc.org> Co-authored-by: Rok Mihevc <rok@mihevc.org> Signed-off-by: Antoine Pitrou <antoine@python.org>
This is to resolve ARROW-16981.