dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6618307
)
ProfilerOutputStats: replace single ':' with '.', too
author
Ori Livneh
<ori@wikimedia.org>
Thu, 21 May 2015 19:16:24 +0000
(12:16 -0700)
committer
Ori Livneh
<ori@wikimedia.org>
Thu, 21 May 2015 19:16:24 +0000
(12:16 -0700)
This maps 'hook: ' and 'query: ' to a metric name segment, instead of just a
metric name prefix.
Change-Id: I41fb71becbc862597b998c73ccfcaca5a3510ffc
includes/profiler/output/ProfilerOutputStats.php
patch
|
blob
|
history
diff --git
a/includes/profiler/output/ProfilerOutputStats.php
b/includes/profiler/output/ProfilerOutputStats.php
index
0d75191
..
d816a01
100644
(file)
--- a/
includes/profiler/output/ProfilerOutputStats.php
+++ b/
includes/profiler/output/ProfilerOutputStats.php
@@
-42,7
+42,7
@@
class ProfilerOutputStats extends ProfilerOutput {
* @since 1.26
*/
private static function normalizeMetricKey( $key ) {
- $key =
str_replace( '::
', '.', $key );
+ $key =
preg_replace( '/[:.]+/
', '.', $key );
$key = preg_replace( '/[^a-z.]+/i', '_', $key );
$key = trim( $key, '_.' );
return str_replace( array( '._', '_.' ), '.', $key );