File: _get_memory_usage_other.py

package info (click to toggle)
python-zstd 1.5.7.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,436 kB
  • sloc: ansic: 47,099; python: 1,083; asm: 390; makefile: 3
file content (16 lines) | stat: -rw-r--r-- 433 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# -*- coding: utf8 -*-

"""
The function in this Python module determines the current memory usage of the
current process by reading the VmSize value from /proc/$pid/status. It's based
on the following entry in the Python cookbook:
http://code.activestate.com/recipes/286222/
"""

# simulation for maxos and windows not having /proc
def get_memory_usage():
    return 0

def get_real_memory_usage():
    return 0
# vim: ts=2 sw=2 et