aboutsummaryrefslogtreecommitdiffstats
path: root/.phan/internal_stubs
diff options
context:
space:
mode:
authorKevin Israel <pleasestand@live.com>2022-11-26 02:18:47 -0500
committerKrinkle <krinkle@fastmail.com>2022-11-28 06:20:45 +0000
commitb3a2c88ceac611deae12d7266c8aa512f672bb34 (patch)
tree19eef11c467b4ed8870f591c7bc6f8915a4d6a46 /.phan/internal_stubs
parent3aa7f762a10c69f653ff96a2db273dc8b6347b31 (diff)
downloadmediawikicore-b3a2c88ceac611deae12d7266c8aa512f672bb34.tar.gz
mediawikicore-b3a2c88ceac611deae12d7266c8aa512f672bb34.zip
profiler: Drop support for Tideways 4.x in ProfilerXhprof
This branch fails to compile against PHP 7.4.3, our lowest supported version, and will not be updated to support that or any newer version: https://tideways.com/profiler/blog/releasing-new-tideways-xhprof-extension In doing so, remove the Xhprof class. At this point, it doesn't do anything other than calling either of two functions from whichever extension is installed, which can just be done in ProfilerXhprof. Change-Id: Iba1c16f47c68b36982f5d2dcda3bdf4dcb83501d
Diffstat (limited to '.phan/internal_stubs')
-rw-r--r--.phan/internal_stubs/tideways.phan_php28
-rw-r--r--.phan/internal_stubs/tideways_xhprof.phan_php15
2 files changed, 15 insertions, 28 deletions
diff --git a/.phan/internal_stubs/tideways.phan_php b/.phan/internal_stubs/tideways.phan_php
deleted file mode 100644
index d87a6e4ca1d4..000000000000
--- a/.phan/internal_stubs/tideways.phan_php
+++ /dev/null
@@ -1,28 +0,0 @@
-<?php
-// These stubs were generated by the phan stub generator.
-// @phan-stub-for-extension tideways@4.0.7
-
-namespace {
-function tideways_disable() {}
-function tideways_enable($flags = null, $options = null) {}
-function tideways_fatal_backtrace() {}
-function tideways_get_spans() {}
-function tideways_last_detected_exception() {}
-function tideways_last_fatal_error() {}
-function tideways_prepend_overwritten() {}
-function tideways_span_annotate($span = null, $annotations = null) {}
-function tideways_span_callback($name = null, $callback = null) {}
-function tideways_span_create($category = null) {}
-function tideways_span_timer_start($span = null) {}
-function tideways_span_timer_stop($span = null) {}
-function tideways_span_watch($name = null, $category = null) {}
-function tideways_sql_minify($sql = null) {}
-function tideways_transaction_name() {}
-const TIDEWAYS_FLAGS_CPU = 2;
-const TIDEWAYS_FLAGS_MEMORY = 4;
-const TIDEWAYS_FLAGS_NO_BUILTINS = 1;
-const TIDEWAYS_FLAGS_NO_COMPILE = 16;
-const TIDEWAYS_FLAGS_NO_HIERACHICAL = 64;
-const TIDEWAYS_FLAGS_NO_SPANS = 32;
-const TIDEWAYS_FLAGS_NO_USERLAND = 8;
-}
diff --git a/.phan/internal_stubs/tideways_xhprof.phan_php b/.phan/internal_stubs/tideways_xhprof.phan_php
new file mode 100644
index 000000000000..984691817a7d
--- /dev/null
+++ b/.phan/internal_stubs/tideways_xhprof.phan_php
@@ -0,0 +1,15 @@
+<?php
+// These stubs were generated by the phan stub generator.
+// @phan-stub-for-extension tideways_xhprof@5.0.4
+
+namespace {
+function tideways_xhprof_disable() {}
+function tideways_xhprof_enable($options = null) {}
+const TIDEWAYS_XHPROF_FLAGS_CPU = 1;
+const TIDEWAYS_XHPROF_FLAGS_MEMORY = 6;
+const TIDEWAYS_XHPROF_FLAGS_MEMORY_ALLOC = 16;
+const TIDEWAYS_XHPROF_FLAGS_MEMORY_ALLOC_AS_MU = 48;
+const TIDEWAYS_XHPROF_FLAGS_MEMORY_MU = 2;
+const TIDEWAYS_XHPROF_FLAGS_MEMORY_PMU = 4;
+const TIDEWAYS_XHPROF_FLAGS_NO_BUILTINS = 8;
+}