{
    "content": [
        {
            "type": "text",
            "text": "# resource (pydoc)\n\n**Summary:** resource\n\n## Section Outline\n\n- **NAME** (2 lines)\n- **MODULE REFERENCE** (8 lines)\n- **CLASSES** (3 lines) — 1 subsections\n  - class struct_rusage (154 lines)\n- **FUNCTIONS** (1 lines) — 5 subsections\n  - getpagesize (1 lines)\n  - getrlimit (1 lines)\n  - getrusage (1 lines)\n  - prlimit (2 lines)\n  - setrlimit (1 lines)\n- **DATA** (21 lines)\n- **FILE** (3 lines)\n\n## Full Content\n\n### NAME\n\nresource\n\n### MODULE REFERENCE\n\nhttps://docs.python.org/3.10/library/resource.html\n\nThe following documentation is automatically generated from the Python\nsource files.  It may be incomplete, incorrect or include features that\nare considered implementation detail and may vary between Python\nimplementations.  When in doubt, consult the module reference at the\nlocation listed above.\n\n### CLASSES\n\nbuiltins.tuple(builtins.object)\nstructrusage\n\n#### class struct_rusage\n\n|  structrusage(iterable=(), /)\n|\n|  structrusage: Result from getrusage.\n|\n|  This object may be accessed either as a tuple of\n|      (utime,stime,maxrss,ixrss,idrss,isrss,minflt,majflt,\n|      nswap,inblock,oublock,msgsnd,msgrcv,nsignals,nvcsw,nivcsw)\n|  or via the attributes ruutime, rustime, rumaxrss, and so on.\n|\n|  Method resolution order:\n|      structrusage\n|      builtins.tuple\n|      builtins.object\n|\n|  Methods defined here:\n|\n|  reduce(...)\n|      Helper for pickle.\n|\n|  repr(self, /)\n|      Return repr(self).\n|\n|  ----------------------------------------------------------------------\n|  Static methods defined here:\n|\n|  new(*args, kwargs) from builtins.type\n|      Create and return a new object.  See help(type) for accurate signature.\n|\n|  ----------------------------------------------------------------------\n|  Data descriptors defined here:\n|\n|  ruidrss\n|      unshared data size\n|\n|  ruinblock\n|      block input operations\n|\n|  ruisrss\n|      unshared stack size\n|\n|  ruixrss\n|      shared memory size\n|\n|  rumajflt\n|      page faults requiring I/O\n|\n|  rumaxrss\n|      max. resident set size\n|\n|  ruminflt\n|      page faults not requiring I/O\n|\n|  rumsgrcv\n|      IPC messages received\n|\n|  rumsgsnd\n|      IPC messages sent\n|\n|  runivcsw\n|      involuntary context switches\n|\n|  runsignals\n|      signals received\n|\n|  runswap\n|      number of swap outs\n|\n|  runvcsw\n|      voluntary context switches\n|\n|  ruoublock\n|      block output operations\n|\n|  rustime\n|      system time used\n|\n|  ruutime\n|      user time used\n|\n|  ----------------------------------------------------------------------\n|  Data and other attributes defined here:\n|\n|  matchargs = ('ruutime', 'rustime', 'rumaxrss', 'ruixrss', 'ru...\n|\n|  nfields = 16\n|\n|  nsequencefields = 16\n|\n|  nunnamedfields = 0\n|\n|  ----------------------------------------------------------------------\n|  Methods inherited from builtins.tuple:\n|\n|  add(self, value, /)\n|      Return self+value.\n|\n|  contains(self, key, /)\n|      Return key in self.\n|\n|  eq(self, value, /)\n|      Return self==value.\n|\n|  ge(self, value, /)\n|      Return self>=value.\n|\n|  getattribute(self, name, /)\n|      Return getattr(self, name).\n|\n|  getitem(self, key, /)\n|      Return self[key].\n|\n|  getnewargs(self, /)\n|\n|  gt(self, value, /)\n|      Return self>value.\n|\n|  hash(self, /)\n|      Return hash(self).\n|\n|  iter(self, /)\n|      Implement iter(self).\n|\n|  le(self, value, /)\n|      Return self<=value.\n|\n|  len(self, /)\n|      Return len(self).\n|\n|  lt(self, value, /)\n|      Return self<value.\n|\n|  mul(self, value, /)\n|      Return self*value.\n|\n|  ne(self, value, /)\n|      Return self!=value.\n|\n|  rmul(self, value, /)\n|      Return value*self.\n|\n|  count(self, value, /)\n|      Return number of occurrences of value.\n|\n|  index(self, value, start=0, stop=9223372036854775807, /)\n|      Return first index of value.\n|\n|      Raises ValueError if the value is not present.\n|\n|  ----------------------------------------------------------------------\n|  Class methods inherited from builtins.tuple:\n|\n|  classgetitem(...) from builtins.type\n|      See PEP 585\n\n### FUNCTIONS\n\n#### getpagesize\n\n#### getrlimit\n\n#### getrusage\n\n#### prlimit\n\nprlimit(pid, resource, [limits])\n\n#### setrlimit\n\n### DATA\n\nRLIMITAS = 9\nRLIMITCORE = 4\nRLIMITCPU = 0\nRLIMITDATA = 2\nRLIMITFSIZE = 1\nRLIMITMEMLOCK = 8\nRLIMITMSGQUEUE = 12\nRLIMITNICE = 13\nRLIMITNOFILE = 7\nRLIMITNPROC = 6\nRLIMITOFILE = 7\nRLIMITRSS = 5\nRLIMITRTPRIO = 14\nRLIMITRTTIME = 15\nRLIMITSIGPENDING = 11\nRLIMITSTACK = 3\nRLIMINFINITY = -1\nRUSAGECHILDREN = -1\nRUSAGESELF = 0\nRUSAGETHREAD = 1\n\n### FILE\n\n/usr/lib/python3.10/lib-dynload/resource.cpython-310-x8664-linux-gnu.so\n\n"
        }
    ],
    "structuredContent": {
        "command": "resource",
        "section": "",
        "mode": "pydoc",
        "summary": "resource",
        "synopsis": null,
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "MODULE REFERENCE",
                "lines": 8,
                "subsections": []
            },
            {
                "name": "CLASSES",
                "lines": 3,
                "subsections": [
                    {
                        "name": "class struct_rusage",
                        "lines": 154
                    }
                ]
            },
            {
                "name": "FUNCTIONS",
                "lines": 1,
                "subsections": [
                    {
                        "name": "getpagesize",
                        "lines": 1
                    },
                    {
                        "name": "getrlimit",
                        "lines": 1
                    },
                    {
                        "name": "getrusage",
                        "lines": 1
                    },
                    {
                        "name": "prlimit",
                        "lines": 2
                    },
                    {
                        "name": "setrlimit",
                        "lines": 1
                    }
                ]
            },
            {
                "name": "DATA",
                "lines": 21,
                "subsections": []
            },
            {
                "name": "FILE",
                "lines": 3,
                "subsections": []
            }
        ]
    }
}