Skip to content

[disjoint] Add CTL memory used/reserved metrics #1430

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

Closed
wants to merge 1 commit into from

Conversation

KFilipek
Copy link
Contributor

Description

Checklist

  • Code compiles without errors locally
  • All tests pass locally
  • CI workflows execute properly
  • CI workflows, not executed per PR (e.g. Nightly), execute properly
  • New tests added, especially if they will fail without my changes
  • Added/extended example(s) to cover this functionality
  • Extended the README/documentation
  • All newly added source files have a license
  • All newly added source files are referenced in CMake files
  • Logger (with debug/info/... messages) is used
  • All API changes are reflected in docs and def/map files, and are tested

@KFilipek KFilipek self-assigned this Jul 10, 2025
@KFilipek KFilipek requested a review from a team as a code owner July 10, 2025 13:21
@KFilipek KFilipek force-pushed the dj-used_reserve branch 3 times, most recently from 1e1ef90 to e249023 Compare July 10, 2025 15:24
@KFilipek KFilipek force-pushed the dj-used_reserve branch 4 times, most recently from d790924 to 64a80e4 Compare July 11, 2025 13:40
@KFilipek KFilipek requested a review from bratpiorka July 11, 2025 14:48
@bratpiorka bratpiorka requested a review from lplewa July 14, 2025 06:54
(void)source, (void)indexes, (void)queryType, (void)extra_name;
disjoint_pool_t *pool = (disjoint_pool_t *)ctx;

if (arg == NULL || size < sizeof(size_t)) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

size != sizeof....

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it really have to be an exact size? Isn't < enough?

(void)source, (void)indexes, (void)queryType, (void)extra_name;
disjoint_pool_t *pool = (disjoint_pool_t *)ctx;

if (arg == NULL || size < sizeof(size_t)) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dito

}

static const umf_ctl_node_t CTL_NODE(disjoint)[] = {
CTL_LEAF_RW(name), CTL_LEAF_RO(used_memory), CTL_LEAF_RO(reserved_memory),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Used memory should be in the stats subtree

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

Successfully merging this pull request may close these issues.

4 participants