| 143 | {} |
| 144 | |
| 145 | void |
| 146 | GpuStatTimer::Clear( ) |
| 147 | { |
| 148 | labelID.clear( ); |
| 149 | timerData.clear( ); |
| 150 | |
| 151 | nEvents = 0; |
| 152 | nSamples = 0; |
| 153 | currID = 0; |
| 154 | currSample = 0; |
| 155 | currRecord = 0; |
| 156 | } |
| 157 | |
| 158 | // The caller can pre-allocate memory, to improve performance. |
| 159 | // nEvents is an approximate value for how many seperate events the caller will think |