1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-30 04:08:59 +01:00
This commit is contained in:
Daniil Gentili 2024-05-29 23:31:32 +02:00
parent b014adaf0d
commit bca3902fb6
4 changed files with 4 additions and 1 deletions

View File

@ -97,6 +97,7 @@ Some of MadelineProto's core components are also available as separate, standalo
* [Databases on docker](https://docs.madelineproto.xyz/docs/DOCKER.html#databases-on-docker)
* [Web docker](https://docs.madelineproto.xyz/docs/DOCKER.html#web-docker)
* [Custom extensions](https://docs.madelineproto.xyz/docs/DOCKER.html#custom-extensions)
* [Metrics](https://docs.madelineproto.xyz/docs/METRICS.html) - MadelineProto can expose many useful metrics, that can be visualized using the official MadelineProto Grafana dashboard.
* [Installation](https://docs.madelineproto.xyz/docs/INSTALLATION.html) - There are various ways to install MadelineProto:
* [Simple](https://docs.madelineproto.xyz/docs/INSTALLATION.html#simple)
* [Composer from existing project](https://docs.madelineproto.xyz/docs/INSTALLATION.html#composer-from-existing-project)

2
docs

@ -1 +1 @@
Subproject commit 6a47633e88e55ce95846f4f89dc2d774b9742a83
Subproject commit 9cf886d25e36c6e7fba442dc7da320bd3fad5b5c

View File

@ -76,6 +76,7 @@ final class GarbageCollector
self::$inuse = self::$prometheus->registerGauge("MadelineProto", "php_memstats_inuse_bytes", "RAM actually used by PHP");
$counter = self::$prometheus->registerCounter("MadelineProto", "explicit_gc_count", "Number of times the GC was explicitly invoked");
$counter->incBy(0);
EventLoop::unreference(EventLoop::repeat(1, static function () use ($counter): void {
$currentMemory = self::getMemoryConsumption();
if ($currentMemory > self::$memoryConsumption + self::$memoryDiffMb) {

View File

@ -99,6 +99,7 @@ $order = [
'FEATURES',
'REQUIREMENTS',
'DOCKER',
'METRICS',
'INSTALLATION',
'BROADCAST',
'UPDATES',