Lines Matching refs:ws_usage
194 WorkingSetKBytes ws_usage; in GetMemoryBytes() local
195 if (!GetWorkingSetKBytes(&ws_usage)) in GetMemoryBytes()
199 *private_bytes = ws_usage.priv * 1024; in GetMemoryBytes()
202 *shared_bytes = ws_usage.shared * 1024; in GetMemoryBytes()
207 bool ProcessMetrics::GetWorkingSetKBytes(WorkingSetKBytes* ws_usage) const { in GetWorkingSetKBytes()
209 if (GetWorkingSetKBytesTotmaps(ws_usage)) in GetWorkingSetKBytes()
212 return GetWorkingSetKBytesStatm(ws_usage); in GetWorkingSetKBytes()
327 bool ProcessMetrics::GetWorkingSetKBytesTotmaps(WorkingSetKBytes *ws_usage) in GetWorkingSetKBytesTotmaps()
378 ws_usage->priv = private_clean + private_dirty + swap; in GetWorkingSetKBytesTotmaps()
379 ws_usage->shared = pss + swap; in GetWorkingSetKBytesTotmaps()
380 ws_usage->shareable = 0; in GetWorkingSetKBytesTotmaps()
381 ws_usage->swapped = swap; in GetWorkingSetKBytesTotmaps()
387 bool ProcessMetrics::GetWorkingSetKBytesStatm(WorkingSetKBytes* ws_usage) in GetWorkingSetKBytesStatm()
419 ws_usage->priv = (statm_rss - statm_shared) * page_size_kb; in GetWorkingSetKBytesStatm()
420 ws_usage->shared = statm_shared * page_size_kb; in GetWorkingSetKBytesStatm()
423 ws_usage->shareable = 0; in GetWorkingSetKBytesStatm()
427 ws_usage->swapped = 0; in GetWorkingSetKBytesStatm()