Commit graph

47 commits

Author SHA1 Message Date
Ævar Arnfjörð Bjarmason
a26d5a49d7 * s~\t+$~~ 2006-01-07 13:31:29 +00:00
Ævar Arnfjörð Bjarmason
7bbe971aec * s~ +$~~ 2006-01-07 13:09:30 +00:00
Domas Mituzas
a0cae0b575 * Print profiling with stack empty but collated list full
* Silently ignore DB writes if db is unreachable
2005-12-30 23:13:31 +00:00
Domas Mituzas
214b9a8d40 * move $wgProfiler init to Setup.php
* allow specifying different profiler types
* add ProfilerSimple (that for now just builds in-memory profiling structure,
  may be extended to write it somewhere)
2005-12-24 13:41:05 +00:00
Tim Starling
526fd17ca7 Measurement of the pre-profile setup time 2005-12-06 13:08:51 +00:00
Antoine Musso
2ca68a256d Clean up unused globals! 2005-12-04 18:27:59 +00:00
Ævar Arnfjörð Bjarmason
a3bd4f01ea * Duck reference errors on PHP >4.4.0 2005-10-26 01:01:56 +00:00
Brion Vibber
219094eb01 Committing various live hacks from Wikimedia servers 2005-10-22 20:52:30 +00:00
Tim Starling
7311ad68ee Output tweak 2005-08-23 16:53:40 +00:00
Brion Vibber
eaf1210148 Committing live hack: don't adjust for times where elapsed is 0 2005-08-17 20:07:07 +00:00
Tim Starling
e58161e85e fix warnings 2005-08-14 13:22:50 +00:00
Tim Starling
7c900a732a profiling improvements and bug fixes 2005-07-25 07:00:20 +00:00
Ævar Arnfjörð Bjarmason
b7b66fcefa * sprintf("%-75s %6s %13s %13s %13s %9s %14s %14s %9s\n", "Name", "Calls", "Total", "Each", "%", "Mem");
caused a E_WARNING in version 4.3.11 of PHP, the number of arguments did not
  match the number of %'s, cut it off at the first %9s
2005-06-19 14:52:03 +00:00
Tim Starling
3e4b32e185 fixed checked-in conflict marker 2005-06-19 10:17:22 +00:00
Tim Starling
54b63a1d26 User time profiling, uncomment to use 2005-06-19 02:31:54 +00:00
Tim Starling
956eeb2334 formatting tweak 2005-05-28 07:00:28 +00:00
Antoine Musso
4f74981100 cleaner code formatting. 2005-01-28 00:50:58 +00:00
Brion Vibber
baa2375b0f * Call-tree output mode for profiling
The call tree is pretty long, and currently displays _uncorrected_ runtimes (without compensation for profiling overhead).
However it can be nice to get a better idea of what's calling what.
2005-01-18 12:30:42 +00:00
Brion Vibber
c0a3a31454 Adjust memory usage stats for overhead as well. Fixed accidental doubling of per-call stats on some calls 2004-11-27 06:38:41 +00:00
Brion Vibber
b67f7b1bcb Compensate for overhead of profiled subcalls in each function, to give less distorted figures. 2004-11-27 05:53:32 +00:00
Brion Vibber
5a70d6951e Reduce total profiling overhead by about 6%, and internal overhead by about 40% 2004-11-27 02:45:36 +00:00
Brion Vibber
1310ff4df7 * Sort the profiling log output so the slowest is at the bottom; it's easier to read the log this way.
* Add min and max execution times for each function
2004-11-23 07:25:22 +00:00
Tim Starling
412eda0517 Correcting bugs due to double-prefixing table names. Removing obsolete Database member functions. Adding comments to Database.php 2004-10-24 07:10:33 +00:00
Domas Mituzas
ce4cdc3469 pass unescaped query string to Database::insert(), double escaping is not needed 2004-09-30 14:40:06 +00:00
Antoine Musso
ba2afcd9fa Split files and classes in different packages for phpdocumentor. I probably changed some double quotes to single and used function foo () { shema 2004-09-03 23:00:01 +00:00
Antoine Musso
90155b8a97 Changing comments layout preparing for generated documentation with Phpdocumentor 2004-09-02 23:28:24 +00:00
Domas Mituzas
183ea63092 strip profile name in case it exceeds db storage size (at 255 mark) 2004-09-01 12:48:09 +00:00
Domas Mituzas
36530b6e55 get rid of all INSERT IGNORE in includes/, change into Database::insertArray 2004-09-01 12:29:07 +00:00
Tim Starling
4097523205 Fixed notice due to main-cleanup being entered at level 0 2004-08-27 13:42:09 +00:00
Antoine Musso
3d60242fb5 massive double to single quotes conversion. I have not noticed any bug after a lot of testing 2004-08-22 17:24:50 +00:00
Tim Starling
3ed08cf6f6 Sort results by total time 2004-08-21 13:57:47 +00:00
Brion Vibber
333ad2a3ab Fix notices from stupid code in last commit 2004-08-21 09:25:24 +00:00
Brion Vibber
f597b18c42 Record and report memory usage change in profiling.
(Only works on PHP 4.3.2 or higher with --enable-memory-limit, otherwise reports 0.)
2004-08-21 08:27:03 +00:00
Tim Starling
ac549401d4 * Support for table name prefixes throughout the code. No support yet for converting static SQL, which also means no installation. But it has been tested by creating the tables in the ordinary way and then renaming them
* DB_WRITE now called DB_MASTER, DB_READ now called DB_SLAVE
* Converted to use SQL wrapper functions instead of direct SQL in various places
* Experimental method for preserving the chronological order of events when slave servers are used. Untested.
* Fixes to the new post-parse existence test feature
* Some.. other stuff
2004-07-18 08:48:43 +00:00
Tim Starling
b96b707efa OOP calling convention for database functions. DBMS abstraction implemented by means of functions instead of global variables, PostgreSQL object converted to a subclass instead of a drop-in replacement. Also the beginnings of a flexible table name feature. 2004-07-10 03:09:26 +00:00
Tim Starling
1a5b4b7000 Fixed profiling 2004-05-26 12:30:36 +00:00
Tim Starling
7ef0896ad7 Fix notice 2004-03-23 12:06:10 +00:00
Brion Vibber
0332f4c598 Fix for compatibility with short_open_tag = Off 2004-02-18 02:15:00 +00:00
Tim Starling
96f02ac694 Got rid of some notices 2004-01-17 11:31:48 +00:00
Mr. E23
587d3b9e9a Added missing global for $wgProfileToDatabase. 2003-12-01 00:09:05 +00:00
Tim Starling
adf48cbb91 Moved logToDB to inside Profiler class 2003-11-19 00:48:40 +00:00
Mr. E23
ab9a00310f Added feature to log sums from profiling data to the DB 2003-11-18 23:52:09 +00:00
Tim Starling
46787701ce Nov. branch merge. Various features backported from stable, various bug fixes. 2003-11-09 11:45:12 +00:00
Tim Starling
ee4c7f2f49 Various fixes, see the version of [[m:Development status]] before this commit for details 2003-11-02 13:57:24 +00:00
Tim Starling
0f6234916a Translation checker added (nl: fixed); more conditional inclusion; misc. tweaks 2003-10-25 08:01:33 +00:00
Tim Starling
ef8c8d5f2b fixed profiling; fixed wfMsg() use of memcached; put block log in initialdata.sql 2003-10-20 13:39:40 +00:00
Tim Starling
d8cc830c4a block/unblock log; split off profiling into Profiling.php and broke it (turn it off for now) 2003-10-16 13:30:45 +00:00