Page MenuHomePhabricator

Standardize Wikibase client parser limit report
Closed, ResolvedPublic

Description

Right now the parser limit report looks like this (see for example https://de.wikipedia.org/w/api.php?action=parse&text=Berlin&prop=limitreportdata):

        "limitreportdata": [
            {
                "name": "limitreport",
                "cputime": "0.000",
                "walltime": "0.001",
                "ppvisitednodes": {
                    "value": 1,
                    "limit": 1000000
                },
 …
            },
            {
                "name": "EntityAccessCount",
                "0": 0
            },
…
        ]
  • We could either make that label just all lower case (but leave the rest as is). (limit report key entityaccesscount)
  • We could put it into a separate Wikibase section (which would make sense in case we add further metrics) (limit report key wikibase-entityaccesscount):
        "limitreportdata": [
            {
                "name": "limitreport",
 …
            },
            {
                "name": "wikibase",
                "entityaccesscount": 2
            },
…
        ]
  • We could put it under limitreport (limit report key limitreport-entityaccesscount):
        "limitreportdata": [
            {
                "name": "limitreport",
                "cputime": "0.139",
…
                "entityaccesscount": 2,
                "timingprofile": [
                    "100.00%    0.000      1 -total"
                ]
            },
…
        ]

We don't have a lot of flexibility here, we can only pass a string as key, where - delimit the namespace(s).

Event Timeline

hoo claimed this task.

Given that I received no input here, I chose to go with the following, because that seems to be consistent with other limits:

        "limitreportdata": [
            {
                "name": "limitreport",
                "cputime": "0.137",
                "walltime": "0.752",
…
                "expensivefunctioncount": {
                    "value": 2,
                    "limit": 500
                },
                "entityaccesscount": {
                    "value": 2,
                    "limit": 250
                },
…
        ]