-
Notifications
You must be signed in to change notification settings - Fork 37
[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
Conversation
1e1ef90
to
e249023
Compare
d790924
to
64a80e4
Compare
64a80e4
to
1d25c21
Compare
(void)source, (void)indexes, (void)queryType, (void)extra_name; | ||
disjoint_pool_t *pool = (disjoint_pool_t *)ctx; | ||
|
||
if (arg == NULL || size < sizeof(size_t)) { |
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.
size != sizeof....
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.
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)) { |
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.
dito
} | ||
|
||
static const umf_ctl_node_t CTL_NODE(disjoint)[] = { | ||
CTL_LEAF_RW(name), CTL_LEAF_RO(used_memory), CTL_LEAF_RO(reserved_memory), |
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.
Used memory should be in the stats subtree
Description
Checklist