dev-master
9999999-devFlow Framework performance monitoring helper
MIT
The Requires
Flow Framework performance monitoring helper
Slim package to store performance metric for your application., (*2)
Warning: Under developmenet, everything can change., (*3)
No stable release is available, you must use dev-master
currently:, (*4)
composer require ttree/flow-devhelper dev-master
This package simple log metrics to %FLOW_PATH_DATA%Logs/PerformanceMetrics.log
, you can change this value in your
Settings.yaml
. The log use logfmt format to be easly parsable and human readable., (*5)
Log the current PHP memory usage., (*6)
Create an internal timer. Display to start time, delta time between two invocation and number of invocation., (*7)
pid=1235 remote_address=unknow severity=info id=57214c5418ce66.81891080, at=1461800020.1016 name=FinishedCompiletimeRun metric=Ttree\Flow\DevHelper\Domain\Model\MemoryUsageMetric memory=76425800 human_memory=72.89MB pid=259 remote_address=172.17.0.2 severity=info id=57214c547492f1.85042719, at=1461800020.4772 name=TYPO3\Flow\Mvc\Dispatcher::Dispatch metric=Ttree\Flow\DevHelper\Domain\Model\TimerMetric start=1461800020.4772 last=1461800020.4772 delta=0 iteration=1 pid=259 remote_address=172.17.0.2 severity=info id=57214c547492f1.85042719, at=1461800020.8253 name=TYPO3\Flow\Mvc\Dispatcher::Dispatch metric=Ttree\Flow\DevHelper\Domain\Model\TimerMetric start=1461800020.4772 last=1461800020.4772 delta=0.34807991981506 iteration=2 pid=259 remote_address=172.17.0.2 severity=info id=57214c547492f1.85042719, at=1461800020.8265 name=TYPO3\Flow\Mvc\Dispatcher::Dispatch metric=Ttree\Flow\DevHelper\Domain\Model\MemoryUsageMetric memory=70936144 human_memory=67.65MB pid=259 remote_address=172.17.0.2 severity=info id=57214c547492f1.85042719, at=1461800020.827 name=FinishedRuntimeRun metric=Ttree\Flow\DevHelper\Domain\Model\MemoryUsageMetric memory=70946984 human_memory=67.66MB
Tools like grep
, sed
and awk
are your best friend ;) but you can use more dedicated tools. Check the
article from Codeship and use
the htutils
to see the full power of logfmt., (*8)
Development sponsored by ttree ltd - neos solution provider., (*9)
We try our best to craft this package with a lots of love, we are open to sponsoring, support request, ... just contact us., (*10)
The MIT License (MIT). Please see LICENSE for more information., (*11)
Flow Framework performance monitoring helper
MIT