Quantcast

Add new Profiler module to allow basic profiling of Ovale code.

Author Johnny C. Lam <jlam88@gmail.com>
Author date 2014-06-01 05:30:17
Author local date 2014-06-01 05:30:17 +0000
Committer Johnny C. Lam <jlam88@gmail.com>
Committer date 2014-06-01 05:30:17
Committer local date 2014-06-01 05:30:17 +0000
Commit 29163eceece5b8f77141b851e81d3dbbf8af1903
Tree 6e7126e118ae9712aa8a2a76d00d213289ee8444
Parent 499be8d9048f89355465d176ecd13b841757a8e4
Add new Profiler module to allow basic profiling of Ovale code.

To get profiling stats for a function, execute Profiler:Start(tag) at the
head of the function and Profiler:Stop(tag) before exiting the function,
where "tag" is a unique label to track.

Everything that happens in-between Start/Stop is attributed to the given
tag.  If a profiled function calls another profiled function, then the
time spent within the called function is not charged to the calling
function.

git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@1504 d5049fe3-3747-40f7-a4b5-f36d6801af5f