wiki.techinc.nl/includes/profiler
Ori Livneh c5e6ce0f9e Add ProfilerMwprof
ProfilerMwprof is similar to ProfilerSimpleUDP in that accumulated profiling
samples are emitted to a remote host using UDP. Profiling data for sections
that are called multiple times are aggregating using the RunningStat class I
introduced in Ifedda276d; this provides the ability to compute timing variance
across multiple requests without storing individual values for a second pass
through the data.

Entries are serialized into MessagePack arrays, using the implementation added
in Id2833c5a9. The first element of each array is an entry type specifier.
Currently two types exist: TYPE_SINGLE (single sample; no statistical moments)
and TYPE_RUNNING (aggregated entry with statistical moments). Additional entry
formats may be specified in the future.

TYPE_SINGLE entries have the format:

  [ TYPE_SINGLE, name (string), CPU time (float), wall time (float ]

TYPE_RUNNING entries have the format:

  [ TYPE_RUNNING, name (string), count (int),
    CPU m1 (float), CPU m2 (float), CPU min (float), CPU max (float),
    wall m1 (float), wall m2 (float), wall min (float), wall max (float) ]

To help reviewers test this change, I have a trivial Python script that can
serve as the back-end: <https://gist.github.com/atdt/8290191>

Change-Id: I688e7231dad9fcc9d29954afacc47f55d521f58d
2014-01-07 13:03:11 -08:00
..
Profiler.php Move closing parenthesis from multi line if and function to own line 2013-12-01 21:39:00 +01:00
ProfilerMwprof.php Add ProfilerMwprof 2014-01-07 13:03:11 -08:00
ProfilerSimple.php Refactor ProfilerSimple 2013-12-31 15:55:03 -08:00
ProfilerSimpleText.php
ProfilerSimpleTrace.php
ProfilerSimpleUDP.php Fixed spacing 2013-11-21 18:52:25 +00:00
ProfilerStub.php