Profiler: Call getContentType() only once in logData()
authorChad Horohoe <chadh@wikimedia.org>
Tue, 4 Nov 2014 17:40:40 +0000 (09:40 -0800)
committerChad Horohoe <chadh@wikimedia.org>
Tue, 4 Nov 2014 17:42:37 +0000 (09:42 -0800)
commit43020f20720b1560a6f0417565bdd49944a41a2e
tree76dab02ed2fe64135e42bd63ca0d4a29babfd427
parente65d02d5856394db416746baa46b98ad6760351a
Profiler: Call getContentType() only once in logData()

Each call potentially does a regular expression check per output
header. No point in multiplying that by 3.

Change-Id: I30e9a6b5df1a773e9448ec9b77d0e79339f19738
includes/profiler/ProfilerSimpleText.php
includes/profiler/ProfilerSimpleTrace.php