2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2025-12-16 03:17:10 +00:00

remove commented out code, more comments

This commit is contained in:
Philip Sargent
2020-07-29 22:54:09 +01:00
parent 42456e8e98
commit 95b9daca80
6 changed files with 25 additions and 85 deletions

View File

@@ -23,6 +23,12 @@ from django.template import Context, loader
import troggle.core.models_survex
"""This file declares TroggleModel which inherits from django.db.models.Model
All TroggleModel subclasses inherit persistence in the django relational database. This is known as
the django Object Relkational Mapping (ORM).
There are more subclasses define in models_caves.py models_survex.py etc.
"""
def get_process_memory():
usage=resource.getrusage(resource.RUSAGE_SELF)
return usage[2]/1024.0