MCPcopy Create free account
hub / github.com/F-Stack/f-stack / zmalloc_get_private_dirty

Function zmalloc_get_private_dirty

app/redis-6.2.6/src/zmalloc.c:621–623  ·  view source on GitHub ↗

Return the total number bytes in pages marked as Private Dirty. * * Note: depending on the platform and memory footprint of the process, this * call can be slow, exceeding 1000ms! */

Source from the content-addressed store, hash-verified

619 * call can be slow, exceeding 1000ms!
620 */
621size_t zmalloc_get_private_dirty(long pid) {
622 return zmalloc_get_smap_bytes_by_field("Private_Dirty:",pid);
623}
624
625/* Returns the size of physical memory (RAM) in bytes.
626 * It looks ugly, but this is the cleanest way to achieve cross platform results.

Callers 1

sendChildInfoGenericFunction · 0.85

Calls 1

Tested by

no test coverage detected