You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you can distinguish modules based on the prefix of the key, for example, the key of user data is `User:<uid>`, the key of Post is `Post:<postid>`, the user statistics is `Stat:User:???`, and the statistics of Post is `Stat:Post:???`.Then we can get the status of each module through prefix analysis:
- The prefix analysis results are arranged in descending order of memory space. The `-n` option can specify the number of outputs. All are output by default.
311
+
312
+
-`-max-depth` can limit the maximum depth of the prefix tree. In the above example, the depth of `Stat:` is 1, and the depth of `Stat:User:` and `Stat:Post:` is 2.
313
+
314
+
Example:
315
+
316
+
```bash
317
+
rdb -c prefix -n -o prefix.csv cases/memory.rdb
318
+
```
319
+
284
320
# Flame Graph
285
321
286
322
In many cases there is not a few very large key but lots of small keys that occupied most memory.
0 commit comments