Skip to content

Commit

Permalink
Add docs
Browse files Browse the repository at this point in the history
  • Loading branch information
danog committed May 29, 2024
1 parent b014ada commit bca3902
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions src/GarbageCollector.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ public static function start(): void
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) {
Expand Down
1 change: 1 addition & 0 deletions tools/build_docs.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@
'FEATURES',
'REQUIREMENTS',
'DOCKER',
'METRICS',
'INSTALLATION',
'BROADCAST',
'UPDATES',
Expand Down

0 comments on commit bca3902

Please sign in to comment.