ae.utils.bench

Simple benchmarking/profiling code

Members

Functions

clearTimes
void clearTimes()
Undocumented in source. Be warned that the author may not have intended to support it.
dumpTimes
void dumpTimes()
Undocumented in source. Be warned that the author may not have intended to support it.
elapsedTime
Duration elapsedTime()
Undocumented in source. Be warned that the author may not have intended to support it.
getTimes
string getTimes()

Retrieves current times and clears them.

timeAction
void timeAction(string action, void delegate() p)
Undocumented in source. Be warned that the author may not have intended to support it.
timeEnd
void timeEnd(string action)
Undocumented in source. Be warned that the author may not have intended to support it.
timePop
void timePop(string action)
Undocumented in source. Be warned that the author may not have intended to support it.
timePush
void timePush(string action)
Undocumented in source. Be warned that the author may not have intended to support it.
timeStart
void timeStart(string action)
Undocumented in source. Be warned that the author may not have intended to support it.

Structs

TimedAction
struct TimedAction
Undocumented in source.

Variables

currentAction
string currentAction;
Undocumented in source.
lastTime
MonoTime lastTime;
Undocumented in source.
timeNameIndices
size_t[string] timeNameIndices;
Undocumented in source.
timedActions
TimedAction[] timedActions;
Undocumented in source.

Meta

License

This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.

Authors

Vladimir Panteleev <vladimir@thecybershadow.net>