DDylan K. TaylorPHPStan 2.0 fixes
cd59e272创建于 2025年1月8日历史提交
文件最后提交记录最后更新时间
2 年前
Mark AsyncPoolWorkerEntry as @internal 2 年前
AsyncWorker now manually triggers GC at the end of each task run, similar to the main thread this avoids costly GC runs during hot code. 1 年前
This timings handler management is a crap design This has bitten me on the ass so many times now1 年前
PHPStan 2.0 fixes 1 年前
Align PhpDoc @param tags according to PHP-CS-Fixer 3 年前
Use PHP-CS-Fixer to enforce file header presence 3 年前
Use PHP-CS-Fixer to enforce file header presence 3 年前
Separate memory dumping utilities from MemoryManager 1 年前
Use PHP-CS-Fixer to enforce file header presence 3 年前
Add generic types for TaskHandler (#6030) 1 年前
Add generic types for TaskHandler (#6030) 1 年前
Add generic types for TaskHandler (#6030) 1 年前
Support for collecting timings from threads, and implement async task timings (#6333) The following callbacks can now be registered in timings, to allow threads to be notified of these events: - Turning on/off (`TimingsHandler::getToggleCallbacks()->add(...)`) - Reset (`TimingsHandler::getReloadCallbacks()->add(...)`) - Collect (`TimingsHandler::getCollectCallbacks()->add(...)`) Collect callbacks must return `list<Promise>`. The promises must be `resolve()`d with `list<string>` of printed timings records, as returned by `TimingsHandler::printCurrentThreadRecords()`. It's recommended to use 1 promise per thread. A timings report will be produced once all promises have been resolved. This system is used internally to collect timings for async tasks (closes #6166). For timings viewer developers: Timings format version has been bumped to 3 to accommodate this change. Timings groups should now include a `ThreadId` at the end of timings group names to ensure that their record IDs are segregated correctly, as they could otherwise conflict between threads. The main thread is not required to specify a thread ID. See pmmp/timings@13cefa6279ee8866dc584b9a7977a9c09cecd732 for implementation examples. New PHPStan error is caused by phpstan/phpstan#109241 年前
Support for collecting timings from threads, and implement async task timings (#6333) The following callbacks can now be registered in timings, to allow threads to be notified of these events: - Turning on/off (`TimingsHandler::getToggleCallbacks()->add(...)`) - Reset (`TimingsHandler::getReloadCallbacks()->add(...)`) - Collect (`TimingsHandler::getCollectCallbacks()->add(...)`) Collect callbacks must return `list<Promise>`. The promises must be `resolve()`d with `list<string>` of printed timings records, as returned by `TimingsHandler::printCurrentThreadRecords()`. It's recommended to use 1 promise per thread. A timings report will be produced once all promises have been resolved. This system is used internally to collect timings for async tasks (closes #6166). For timings viewer developers: Timings format version has been bumped to 3 to accommodate this change. Timings groups should now include a `ThreadId` at the end of timings group names to ensure that their record IDs are segregated correctly, as they could otherwise conflict between threads. The main thread is not required to specify a thread ID. See pmmp/timings@13cefa6279ee8866dc584b9a7977a9c09cecd732 for implementation examples. New PHPStan error is caused by phpstan/phpstan#109241 年前