Content deleted Content added
No edit summary |
|||
Line 11:
==Usage==
This module is not for use in ordinary templates, or on pages, it is to be used in the debug console below the edit window on module pages. For example, assume we open a page [[Module:HelloWorld]], then we can write a call to profile the function p.
<source lang="Lua">
my_object.hello = function( frame )
local str = "Hello World!"
return str
end
return
</source>
Line 26 ⟶ 27:
<source lang="Lua">
=require 'Module:Timing'(p.
</source>
Line 32 ⟶ 33:
<pre>
=require 'Module:Timing'(p.
Each call was running for about 6.20966E-9 seconds. Mean run time for each set was 6.20966E-6 seconds,
with a standard deviation of 5.6091767397007E-6 seconds. Total time spent was about 0.010717389 seconds.
|