2017 © Pedro Peláez
 

typo3-flow-package flow-devhelper

Flow Framework performance monitoring helper

image

ttree/flow-devhelper

Flow Framework performance monitoring helper

  • Friday, May 13, 2016
  • by ttree
  • Repository
  • 2 Watchers
  • 0 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

BSD License Latest Stable Version, (*1)

Flow Framework performance monitoring helper

Slim package to store performance metric for your application., (*2)

Warning: Under developmenet, everything can change., (*3)

Installation

No stable release is available, you must use dev-master currently:, (*4)

composer require ttree/flow-devhelper dev-master

Usage

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)

Available metrics

\Ttree\Flow\DevHelper\Domain\Model\MemoryUsageMetric

Log the current PHP memory usage., (*6)

\Ttree\Flow\DevHelper\Domain\Model\TimerMetric

Create an internal timer. Display to start time, delta time between two invocation and number of invocation., (*7)

Example log output

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

How to work with logfmt ?

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)

Acknowledgments

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)

License

The MIT License (MIT). Please see LICENSE for more information., (*11)

The Versions

13/05 2016

dev-master

9999999-dev

Flow Framework performance monitoring helper

  Sources   Download

MIT

The Requires