MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / zmalloc_get_private_dirty

Function zmalloc_get_private_dirty

src/zmalloc.cpp:633–635  ·  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

631 * call can be slow, exceeding 1000ms!
632 */
633size_t zmalloc_get_private_dirty(long pid) {
634 return zmalloc_get_smap_bytes_by_field("Private_Dirty:",pid);
635}
636
637/* Returns the size of physical memory (RAM) in bytes.
638 * 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