Add to your parsekit.json file new dependency:
{
"require": {
"artlebedev/parser3-erusage": "~1.5.0"
}
}
Update your project dependencies:
$ parsekit update
And just add use statement
@USE
artlebedev/parser3-erusage/Erusage.p
# or
^use[artlebedev/parser3-erusage/Erusage.p]
First call(can be omitted):
^Erusage:init[$.iLimit(2048)]
Others calls:
^Erusage:compact[]
Real ^memory:compact[]
will be called if used more then $iLimit
KB since
last compact or if $.bForce(1)
option is specified.
At the end (in @postprocess
for ex.) you can analyze statistics or call
^Erusage:log[]
or ^Erusage:print[]
.