(self, callcount)
| 164 | per_platform["counts"][:] = [] |
| 165 | |
| 166 | def replace(self, callcount): |
| 167 | test_key = _current_test |
| 168 | per_fn = self.data[test_key] |
| 169 | per_platform = per_fn[self.platform_key] |
| 170 | counts = per_platform["counts"] |
| 171 | current_count = per_platform["current_count"] |
| 172 | if current_count < len(counts): |
| 173 | counts[current_count - 1] = callcount |
| 174 | else: |
| 175 | counts[-1] = callcount |
| 176 | if self.write: |
| 177 | self._write() |
| 178 | |
| 179 | def _header(self): |
| 180 | return ( |