GRAYBYTE WORDPRESS FILE MANAGER6276

Server IP : 198.54.121.189 / Your IP : 216.73.216.224
System : Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /opt/cloudlinux/venv/lib/python3.11/site-packages/prometheus_client/
Upload Files :
Current_dir [ Not Writeable ] Document_root [ Writeable ]

Command :


Current File : /opt/cloudlinux/venv/lib/python3.11/site-packages/prometheus_client//gc_collector.py
from __future__ import unicode_literals

import gc
import platform

from .metrics_core import CounterMetricFamily
from .registry import REGISTRY


class GCCollector(object):
    """Collector for Garbage collection statistics."""

    def __init__(self, registry=REGISTRY):
        if not hasattr(gc, 'get_stats') or platform.python_implementation() != 'CPython':
            return
        registry.register(self)

    def collect(self):
        collected = CounterMetricFamily(
            'python_gc_objects_collected',
            'Objects collected during gc',
            labels=['generation'],
        )
        uncollectable = CounterMetricFamily(
            'python_gc_objects_uncollectable',
            'Uncollectable object found during GC',
            labels=['generation'],
        )

        collections = CounterMetricFamily(
            'python_gc_collections',
            'Number of times this generation was collected',
            labels=['generation'],
        )

        for generation, stat in enumerate(gc.get_stats()):
            generation = str(generation)
            collected.add_metric([generation], value=stat['collected'])
            uncollectable.add_metric([generation], value=stat['uncollectable'])
            collections.add_metric([generation], value=stat['collections'])

        return [collected, uncollectable, collections]


GC_COLLECTOR = GCCollector()
"""Default GCCollector in default Registry REGISTRY."""

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
June 25 2025 08:31:36
root / root
0755
__pycache__
--
May 15 2025 08:30:34
root / root
0755
bridge
--
May 15 2025 08:30:34
root / root
0755
openmetrics
--
May 15 2025 08:30:34
root / root
0755
twisted
--
May 15 2025 08:30:34
root / root
0755
__init__.py
1.774 KB
April 17 2025 13:10:58
root / root
0644
asgi.py
1.157 KB
April 17 2025 13:10:58
root / root
0644
context_managers.py
1.651 KB
April 17 2025 13:10:58
root / root
0644
core.py
0.874 KB
April 17 2025 13:10:58
root / root
0644
decorator.py
15.432 KB
April 17 2025 13:10:58
root / root
0644
exposition.py
14.925 KB
April 17 2025 13:10:58
root / root
0644
gc_collector.py
1.424 KB
April 17 2025 13:10:58
root / root
0644
metrics.py
21.664 KB
April 17 2025 13:10:58
root / root
0644
metrics_core.py
11.603 KB
April 17 2025 13:10:58
root / root
0644
mmap_dict.py
5.141 KB
April 17 2025 13:10:58
root / root
0644
multiprocess.py
6.322 KB
April 17 2025 13:10:58
root / root
0644
parser.py
7.086 KB
April 17 2025 13:10:58
root / root
0644
platform_collector.py
1.694 KB
April 17 2025 13:10:58
root / root
0644
process_collector.py
3.568 KB
April 17 2025 13:10:58
root / root
0644
registry.py
5.231 KB
April 17 2025 13:10:58
root / root
0644
samples.py
1.326 KB
April 17 2025 13:10:58
root / root
0644
utils.py
0.606 KB
April 17 2025 13:10:58
root / root
0644
values.py
3.746 KB
April 17 2025 13:10:58
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF