The caller can pre-allocate memory, to improve performance. nEvents is an approximate value for how many seperate events the caller will think they will need, and nSamples is a hint on how many samples we think we will take per event
| 160 | // they will need, and nSamples is a hint on how many samples we think we will take |
| 161 | // per event |
| 162 | void |
| 163 | GpuStatTimer::Reserve( size_t nE, size_t nS ) |
| 164 | { |
| 165 | Clear( ); |
| 166 | nEvents = std::max< size_t >( 1, nE ); |
| 167 | nSamples = std::max< size_t >( 1, nS ); |
| 168 | |
| 169 | labelID.reserve( nEvents ); |
| 170 | timerData.resize( nEvents ); |
| 171 | } |
| 172 | |
| 173 | void |
| 174 | GpuStatTimer::Reset( ) |
nothing calls this directly
no outgoing calls
no test coverage detected