Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
8b723d2d
"vscode:/vscode.git/clone" did not exist on "5fa95ad7639ae3f43e175d95a7d6384e4723b80e"
Commit
8b723d2d
authored
Mar 27, 2023
by
Vitaly Arbuzov
Browse files
Add dict sizes to memory overhead data
parent
ed138c0a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/object.c
View file @
8b723d2d
...
...
@@ -1245,7 +1245,8 @@ struct redisMemOverhead *getMemoryOverheadData(void) {
mem
=
keyscount
*
dictEntryMemUsage
()
+
dbSlots
(
db
)
*
sizeof
(
dictEntry
*
)
+
keyscount
*
sizeof
(
robj
);
keyscount
*
sizeof
(
robj
)
+
db
->
dict_count
*
sizeof
(
dict
);
mh
->
db
[
mh
->
num_dbs
].
overhead_ht_main
=
mem
;
mem_total
+=
mem
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment