Aaron Schulz has uploaded a new change for review.
https://gerrit.wikimedia.org/r/173099
Change subject: Avoid sending spammy @X xhprof entries over UDP
......................................................................
Avoid sending spammy @X xhprof entries over UDP
Change-Id: I8509932f7368cab2a5426f437845e2849a82d9b4
---
M includes/profiler/ProfilerXhprof.php
1 file changed, 3 insertions(+), 0 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core
refs/changes/99/173099/1
diff --git a/includes/profiler/ProfilerXhprof.php
b/includes/profiler/ProfilerXhprof.php
index 1e83e27..5e70aa9 100644
--- a/includes/profiler/ProfilerXhprof.php
+++ b/includes/profiler/ProfilerXhprof.php
@@ -284,6 +284,9 @@
$buffer = '';
$bufferSize = 0;
foreach ( $metrics as $func => $data ) {
+ if ( strpos( $func, '@' ) !== false ) {
+ continue; // ignore cyclic re-entries to
functions
+ }
$line = sprintf( $wgUDPProfilerFormatString,
$this->getProfileID(),
$data['ct'],
--
To view, visit https://gerrit.wikimedia.org/r/173099
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I8509932f7368cab2a5426f437845e2849a82d9b4
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Aaron Schulz <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits