|
Tramway SDK v0.1.1
|
#include <framework/stats.h>#include <framework/core.h>#include <framework/logging.h>#include <platform/api.h>#include <vector>#include <cassert>Classes | |
| struct | tram::Stats::SystemStat |
Namespaces | |
| namespace | tram::Stats |
| Resource usage statistics. | |
| namespace | tram |
| Serialization, i.e. | |
Functions | |
| void | tram::Stats::Start (System::system_t system) |
| Starts counting time spent on a system. More... | |
| void | tram::Stats::Stop (System::system_t system) |
| Stops counting time spent on a system. More... | |
| void | tram::Stats::Add (Resource resource, size_t ammount) |
| Adds an ammount of a resource. More... | |
| void | tram::Stats::Remove (Resource resource, size_t ammount) |
| Removes an ammount of a resource. More... | |
| void | tram::Stats::Collate () |
| Collates all of the time statistics. More... | |
| size_t | tram::Stats::GetStat (Resource resource) |
| Returns the uncollated ammount of a resource. More... | |
| double | tram::Stats::GetStat (System::system_t system) |
| Returns the collated time of a system. More... | |
| double | tram::Stats::GetStatUncollated (System::system_t system) |
| Returns the uncollated time of a system. More... | |
| double | tram::Stats::GetStatAverage (System::system_t system) |
| Returns the ammount of resource, averaged over the last second. More... | |