This class measures time difference (cpu time, wall time, etc) between calls to its start and stop function.
More...
|
| | DtInMemoryProfiler () |
| | CTOR Max number of samples to be collected must be provided up front, so that mem allocations don't take up profiling time. More...
|
| |
| | ~DtInMemoryProfiler () |
| | DTOR. More...
|
| |
| void | init (std::size_t numOfSamples, const std::string &fileName) |
| |
| std::size_t | numSamples () const |
| | Max number of samples that the profiler can profile. More...
|
| |
| void | start () |
| | Start profiling (a given frame) More...
|
| |
| void | stop () |
| | Stop profiling (a given frame) More...
|
| |
| void | reset () |
| | discard current samples profiled (e.g. to start profiling anew) More...
|
| |
| bool | dumped () const |
| | were stats dumped already? This can happen if the number of samples to be collected exceed the capacity More...
|
| |
| void | dump () |
| |
| bool | valid () const |
| | Is profiler valid. More...
|
| |
|
| static std::size_t | calculateNumberOfSamples (float estimatedFrequency, float estimatedRunTimeSeconds) |
| | Utility function: Given an approximate frequency and a run time in seconds will compute the upper bound on the number of samples needed. More...
|
| |
This class measures time difference (cpu time, wall time, etc) between calls to its start and stop function.
| makVrv::DtInMemoryProfiler::DtInMemoryProfiler |
( |
| ) |
|
CTOR Max number of samples to be collected must be provided up front, so that mem allocations don't take up profiling time.
| makVrv::DtInMemoryProfiler::~DtInMemoryProfiler |
( |
| ) |
|
| static std::size_t makVrv::DtInMemoryProfiler::calculateNumberOfSamples |
( |
float |
estimatedFrequency, |
|
|
float |
estimatedRunTimeSeconds |
|
) |
| |
|
static |
Utility function: Given an approximate frequency and a run time in seconds will compute the upper bound on the number of samples needed.
| void makVrv::DtInMemoryProfiler::init |
( |
std::size_t |
numOfSamples, |
|
|
const std::string & |
fileName |
|
) |
| |
| std::size_t makVrv::DtInMemoryProfiler::numSamples |
( |
| ) |
const |
Max number of samples that the profiler can profile.
| void makVrv::DtInMemoryProfiler::start |
( |
| ) |
|
Start profiling (a given frame)
| void makVrv::DtInMemoryProfiler::stop |
( |
| ) |
|
Stop profiling (a given frame)
| void makVrv::DtInMemoryProfiler::reset |
( |
| ) |
|
discard current samples profiled (e.g. to start profiling anew)
| bool makVrv::DtInMemoryProfiler::dumped |
( |
| ) |
const |
were stats dumped already? This can happen if the number of samples to be collected exceed the capacity
| void makVrv::DtInMemoryProfiler::dump |
( |
| ) |
|
| bool makVrv::DtInMemoryProfiler::valid |
( |
| ) |
const |
Is profiler valid.
Will be false if it cannot allocate memory for requested number of samples or if the dump file cannot be written to, etc
| void makVrv::DtInMemoryProfiler::dumpStats |
( |
| ) |
|
|
protected |
dump the min/max/and average
| DtTimedSection* makVrv::DtInMemoryProfiler::myTimer |
|
protected |
| bool makVrv::DtInMemoryProfiler::myStarted |
|
protected |
The documentation for this class was generated from the following file: