Commit graph

1878 commits

Author SHA1 Message Date
Brad Jorsch 1365e35d89 Waste CPU cycles, not wall clock time
Apparently microtime is a bit unreliable for this test for some reason,
so let's use getrusage() to measure actual CPU time instead.

Bug: T125045
Change-Id: Ia1ab6b043b99abb4fc6c2989ad09a24d97dd09c3
2016-02-11 14:00:03 -05:00
Paladox bd44f0f5e8 Add phplint to composer
Change-Id: Ia3509caa82a3ed6d021c61d8bbe2340f12f15e05
2016-02-10 08:57:50 +00:00
Translation updater bot 6ff65d0b28 Localisation updates from https://translatewiki.net.
Change-Id: I1b893c19f6338577ce124186aee766737e673de6
2016-01-31 21:41:18 +01:00
Translation updater bot 0c2dd662b6 Localisation updates from https://translatewiki.net.
Change-Id: Ic33dff158397fb3ac6fe97694ddf79d40972f859
2016-01-27 21:44:15 +01:00
Brad Jorsch dd0c6e7668 Use ParserOutput::getRawText() where available
This is unlikely to be a cause of the cache corruption since this isn't
calling setText() on any wikitext ParserOutputs, but let's fix it just
in case.

Bug: T124356
Change-Id: Ic34c654af86385dede843009d89df6f442ddc915
2016-01-25 12:39:23 -05:00
Anomie 581ca1111f Revert "Add license information"
This reverts commit 4c29dba5e8.

Change-Id: I3c15b4b93355322de80cb1c3ede83bd048b4c94d
2016-01-23 15:27:39 +00:00
victorbarbu 4c29dba5e8 Add license information
Bug: T123943
Change-Id: Ib8de2c84e7e962efce656530021a44617a9dcb8a
2016-01-23 13:04:40 +02:00
Jackmcbarn dc9446b84d Remove loadedLibraries
Nothing actually uses this, so I'm not sure why we ever kept track of it.

Change-Id: I60480b96a83731c7b25aed55099886a86efc08b1
2016-01-19 02:25:25 +00:00
Translation updater bot dbd18285ed Localisation updates from https://translatewiki.net.
Change-Id: Icdad6367012572e137e2312a12b019c3689eda80
2016-01-18 21:37:17 +01:00
Translation updater bot ab1e3d81a1 Localisation updates from https://translatewiki.net.
Change-Id: I8680e91480889ce81da6dc76899a5ec7d5086ec6
2016-01-13 23:30:52 +01:00
Translation updater bot 4502686a8d Localisation updates from https://translatewiki.net.
Change-Id: I6d0cb0e11c026369d5af4c7c5de5e218858f4de3
2016-01-12 22:47:55 +01:00
Translation updater bot 201da404a5 Localisation updates from https://translatewiki.net.
Change-Id: I960cc58236fc597439286b94503123fc7ae21876
2016-01-08 22:20:36 +01:00
Translation updater bot f61da4de47 Localisation updates from https://translatewiki.net.
Change-Id: I07599f596b757f665eb8f7dd53c72f33e13cbd61
2016-01-07 23:37:51 +01:00
Translation updater bot 1a48d0c7f2 Merge "Localisation updates from https://translatewiki.net." 2016-01-03 20:45:07 +00:00
Translation updater bot 957bb7948e Localisation updates from https://translatewiki.net.
Change-Id: I7de4a8bbcb4dee08f3c4e42d852278971000d645
2016-01-03 21:44:01 +01:00
jenkins-bot 2473efdb2a Merge "Use correct variable in ustring.lua" 2016-01-03 20:41:02 +00:00
Ricordisamoa f378c13472 build: Enable and configure jscs, fix some errors
Change-Id: I17115bfe09b91e6fcf84b329a12deab6c708086b
2016-01-03 05:07:04 +01:00
Brad Jorsch 29266a9a0f Use correct variable in ustring.lua
Change-Id: Ic576b8c31c487c106593050538f9f2cc5b722b62
2016-01-02 10:49:48 -05:00
Translation updater bot 3a7bf89d17 Localisation updates from https://translatewiki.net.
Change-Id: I7534220d3813754189d9390a9f67f47f230d6019
2016-01-01 20:05:19 +01:00
Translation updater bot 5cc055d385 Localisation updates from https://translatewiki.net.
Change-Id: I18a8cc188acd00cd88016c3697cd6cefbf1b6efb
2015-12-30 21:44:50 +01:00
Kunal Mehta f446449faf build: Updating development dependencies
* grunt-jsonlint: 1.0.4 → 1.0.7

Change-Id: I634532264a4f00f3cc5c8c5237b75685ad152f5f
2015-12-29 11:53:15 -08:00
Translation updater bot e6dc978522 Localisation updates from https://translatewiki.net.
Change-Id: Iec2f8b05d904379dabbae7f53e66403a4311c182
2015-12-15 22:24:48 +01:00
Translation updater bot 160a2f0cb2 Localisation updates from https://translatewiki.net.
Change-Id: I681c61a298b42337877302dc4ccba568141df000
2015-12-11 23:53:44 +01:00
Translation updater bot 7ff1e942db Localisation updates from https://translatewiki.net.
Change-Id: Idece018eb0491fceae32bc662e4e94093f1d5b94
2015-12-07 23:15:02 +01:00
Translation updater bot 6c93653c16 Localisation updates from https://translatewiki.net.
Change-Id: Ief6c8da0e62f9a9136eb1ac9a0a8b62db6b1a7b3
2015-12-02 21:59:12 +01:00
Translation updater bot 49f50176b2 Localisation updates from https://translatewiki.net.
Change-Id: Ib0981e06bde66006b5717a49f225cc6aa95c0d38
2015-11-27 22:47:29 +01:00
Translation updater bot 4939d7f258 Localisation updates from https://translatewiki.net.
Change-Id: Iaf54dbb7efba936c4a4589e997ae9948e04dcf61
2015-11-26 22:03:38 +01:00
Translation updater bot f600c2bb4d Localisation updates from https://translatewiki.net.
Change-Id: I6cfcd3625c0c03d4ab6e34bec220d8b99ffe4dbd
2015-11-24 23:10:46 +01:00
Translation updater bot 430f71925f Localisation updates from https://translatewiki.net.
Change-Id: I39b79113cb80cb262f6b0d74960d740b24037b75
2015-11-22 20:46:26 +01:00
Translation updater bot a10aa8b054 Localisation updates from https://translatewiki.net.
Change-Id: Ia80511b9fa0d4d7f055c080736a12d1a1335cb6e
2015-11-19 21:39:55 +01:00
Translation updater bot 8ac8c5468a Localisation updates from https://translatewiki.net.
Change-Id: I551f7719334034ab154f1b6cf17d0565531441c2
2015-11-17 21:53:46 +01:00
Translation updater bot 6df4147e4f Localisation updates from https://translatewiki.net.
Change-Id: Id061d32a4ae21736e3db203dd4a6ca530a286153
2015-11-14 22:17:46 +01:00
jenkins-bot dae93fd4b3 Merge "Fix typo in comment and missing spaces" 2015-11-12 17:28:41 +00:00
Jan Zerebecki 1517a1ba2e Fix typo in comment and missing spaces
Change-Id: Ifda05edd9b488768814d3251a93d71e9b55ea5a6
2015-11-11 23:08:15 +00:00
jenkins-bot 48e353d926 Merge "Temporarily skip a test that fails on HHVM." 2015-11-11 21:45:47 +00:00
Translation updater bot 838afbf9cc Localisation updates from https://translatewiki.net.
Change-Id: Ic34c080fab02bfde9e244fbebae02265be22b2c2
2015-11-11 21:55:57 +01:00
Jan Zerebecki fa0e32ce99 Temporarily skip a test that fails on HHVM.
HHVM has a bug in json decode https://github.com/facebook/hhvm/issues/5813 .
Skip the test until there is a fix upstream.

Bug: T103346
Change-Id: I7e44d98c29ba9b9f5443665fc046382f696193c9
2015-11-11 21:49:12 +01:00
Translation updater bot ca2249c994 Localisation updates from https://translatewiki.net.
Change-Id: I5863509488f555e78c5d6b06850a464ec6fd2670
2015-11-09 21:48:08 +01:00
Translation updater bot e14d904716 Localisation updates from https://translatewiki.net.
Change-Id: I8c15982d4c20621194d80d734d067daf2e5b7c24
2015-11-02 22:38:40 +01:00
Translation updater bot 6a25b110bf Localisation updates from https://translatewiki.net.
Change-Id: I7c99795070378c80069938adcda82781ee32e806
2015-10-31 21:07:08 +01:00
jenkins-bot b8830a3e57 Merge "ustring: Handle "empty" charset like Lua does (part 2)" 2015-10-30 16:34:54 +00:00
Ori Livneh f3558e489d When logging perf stats, include wfWikiId() in metric key
...so that modules are easily locatable in multi-wiki environments (like
Wikimedia's).

Change-Id: I60b9eb6177294eedceaacd5398545a30ad896f11
2015-10-29 20:53:06 -07:00
Ori Livneh a5d97eaa90 Make the percentile threshold for slow function stats configurable
Introduce $wgScribuntoSlowFunctionThreshold, which is a float value between 0
and 1 (defaults to 0.9), specifying the percentile threshold for slow function
invocation reporting.

Change-Id: I3bd862347c21ba68d2f2f0729a834c4f7be3cd43
2015-10-30 00:16:03 +00:00
Ori Livneh b5df651e1e Scribunto_LuaSandboxEngine::getResourceUsage(): call load()
This is required for ensuring $this->interpreter is available. See
::getLimitReportData(), which does the same thing.

Change-Id: I275b093dd7d5f4873ec4b912823322e6e533cae1
2015-10-29 16:52:21 -07:00
Ori Livneh 7e63874c5c Move getResourceUsage to Scribunto_LuaSandboxEngine
Fix-up for I6a4ed03c126.

Change-Id: I69e9218c6a3da6ca2a6f13e5911fee1c78a8f4a0
2015-10-29 16:29:00 -07:00
Translation updater bot 8299a0a22d Localisation updates from https://translatewiki.net.
Change-Id: I1c4efebfbb44a1b727bbc03abfd4bee306d000c8
2015-10-29 21:25:57 +01:00
Ori Livneh 605b5ed742 Keep stats on slow function calls
Report timing data for the top 1% of Lua function invocations, measured by CPU
time. Use the PSquare class from RunningStat (Ibbd3925aa) to keep an online
estimate of the 99th percentile without storing observations.

Depends on Ibbd3925aa (and on a follow-up patch to bump the RunningStat version
in core's composer.json.)

Change-Id: I0d39920733fe719f87698f03408698ed032c9849
2015-10-28 21:34:50 -07:00
Ori Livneh 930421d242 Add ScribuntoEngineBase::getResourceUsage()
Introduce a method, ScribuntoEngineBase::getResourceUsage(), which may be
overridden by script engine implementations to provide CPU and memory usage
data.

Change-Id: I6a4ed03c1261f43a7ce7de6f274c32c450e66abb
2015-10-29 03:59:07 +00:00
Translation updater bot 36d108a02e Localisation updates from https://translatewiki.net.
Change-Id: I9f7abedbf5358c1b5cc3d2be704ab09c9dab282f
2015-10-28 21:55:28 +01:00
Translation updater bot 7053497390 Localisation updates from https://translatewiki.net.
Change-Id: Ie306f413abd9431f4bfc0ac0cdfb09ef0f2e1882
2015-10-25 22:07:06 +01:00