Simplify profiler output class selection
authorOri Livneh <ori@wikimedia.org>
Thu, 2 Apr 2015 17:46:57 +0000 (10:46 -0700)
committerOri Livneh <ori@wikimedia.org>
Thu, 2 Apr 2015 18:01:52 +0000 (11:01 -0700)
commit27b9c0639d976e8048330c7ee95be30f61ee941b
treedc34cdb6e600750c4124072d968702f940983403
parent4e5d016e72a41b3dc2a92d8cce5c4c8e38b7372d
Simplify profiler output class selection

Instead of maintaining a mapping of short names to class names ('db' =>
'ProfilerOutputDb', etc.), let us adopt the convention of using the full
class name to indicate the output type. We can maintain backward-compatibility
by using simple string manipulation to transform short names to the full class
names.

Change-Id: I976e0da2873d88b9892fb41823cfe3af0a2d3974
StartProfiler.sample
includes/profiler/Profiler.php